From 25a64e9098abefc7db0dbe54bb1a8ed5abd34219 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 29 Jan 2013 10:15:50 +0100 Subject: [PATCH] [-] BO : reduced error catching severity in the module tab --- config/alias.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/alias.php b/config/alias.php index 77ee8fac0..9c4cbb36a 100644 --- a/config/alias.php +++ b/config/alias.php @@ -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).':
'.$error['message']; }