[-] CORE : error_get_last > PHP 5.1
This commit is contained in:
1 parent
8a682081de
commit
2e2151a1bb
1 file changed
+4
-2
+4
-2
@@ -73,8 +73,10 @@ function bqSQL($string)
|
|||||||
|
|
||||||
function displayFatalError()
|
function displayFatalError()
|
||||||
{
|
{
|
||||||
$error = error_get_last();
|
$error = null;
|
||||||
if ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE)))
|
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).':<br />'.$error['message'];
|
echo '[PrestaShop] Fatal error in module '.substr(basename($error['file']), 0, -4).':<br />'.$error['message'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user