[-] INSTALLER : Fix bug #PSCFV-8605 first part, do not affect memeory limit when upgrading if set to -1

This commit is contained in:
gRoussac
2013-05-02 19:02:48 +02:00
parent 63fe5b8d4a
commit 049d00a9db
+1 -1
View File
@@ -35,7 +35,7 @@ $engineType = 'ENGINE_TYPE';
$memory_limit = ini_get('memory_limit'); $memory_limit = ini_get('memory_limit');
if (substr($memory_limit,-1) != 'G' if (substr($memory_limit,-1) != 'G'
AND ((substr($memory_limit,-1) == 'M' AND substr($memory_limit,0, -1) < 128) AND ((substr($memory_limit,-1) == 'M' AND substr($memory_limit,0, -1) < 128)
OR is_numeric($memory_limit) AND (intval($memory_limit) < 131072)) OR is_numeric($memory_limit) AND (intval($memory_limit) < 131072) AND $memory_limit > 0)
) )
@ini_set('memory_limit','128M'); @ini_set('memory_limit','128M');