[-] BO : reduced error catching severity in the module tab

This commit is contained in:
Damien Metzger
2013-01-29 10:16:02 +01:00
parent 6f7e8cb741
commit 25a64e9098
+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'];
}