[-] BO : error message on install module

This commit is contained in:
vAugagneur
2013-02-05 09:41:34 +01:00
74 changed files with 898 additions and 882 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ function bqSQL($string)
function displayFatalError()
{
$error = error_get_last();
if ($error !== NULL)
if ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE)))
echo '[PrestaShop] Fatal error in module '.substr(basename($error['file']), 0, -4).':<br />'.$error['message'];
}