diff --git a/config/alias.php b/config/alias.php index 9c4cbb36a..7f870ef23 100644 --- a/config/alias.php +++ b/config/alias.php @@ -73,8 +73,10 @@ function bqSQL($string) function displayFatalError() { - $error = error_get_last(); - if ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE))) + $error = null; + if (function_exists('error_get_last')) + $error = error_get_last(); + if ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE, E_COMPILE_ERROR ))) echo '[PrestaShop] Fatal error in module '.substr(basename($error['file']), 0, -4).':
'.$error['message']; }