diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index 7e2f57cfb02..caa8473b792 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -155,7 +155,7 @@ if ($memmaxorig != '')
if (strtoupper($reg[2]) == 'M') $memmax=$reg[1]*1024*1024;
if (strtoupper($reg[2]) == 'K') $memmax=$reg[1]*1024;
}
- if ($memmax >= $memrequired)
+ if ($memmax >= $memrequired || $memmax == -1)
{
print '
'.$langs->trans("PHPMemoryOK",$memmaxorig,$memrequiredorig)."
\n";
}