diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index c2abbc2a0141404fe7b4b519861ada8debc7c1c0..5fa6843978e254bb2b0958acea69ea5d1320ca0f 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -71,12 +71,14 @@ if (! empty($useragent))
 
 
 // Check PHP version
-if (versioncompare(versionphparray(),array(5,2,3)) < 0)        // Minimum to use (error if lower)
+$arrayphpminversionerror = array(5,3,0);
+$arrayphpminversionwarning = array(5,3,0);
+if (versioncompare(versionphparray(),$arrayphpminversionerror) < 0)        // Minimum to use (error if lower)
 {
 	print '<img src="../theme/eldy/img/error.png" alt="Error"> '.$langs->trans("ErrorPHPVersionTooLow",'5.2.3');
 	$checksok=0;	// 0=error, 1=warning
 }
-else if (versioncompare(versionphparray(),array(5,3,0)) < 0)    // Minimum supported (warning if lower)
+else if (versioncompare(versionphparray(),$arrayphpminversionwarning) < 0)    // Minimum supported (warning if lower)
 {
     print '<img src="../theme/eldy/img/warning.png" alt="Error"> '.$langs->trans("ErrorPHPVersionTooLow",'5.3.0');
     $checksok=0;	// 0=error, 1=warning