diff --git a/app/laravel/error.php b/app/laravel/error.php index 283e043fd..d6f01d2a0 100644 --- a/app/laravel/error.php +++ b/app/laravel/error.php @@ -84,7 +84,14 @@ public static function native($code, $error, $file, $line) // of the exception details for the developer. $exception = new \ErrorException($error, $code, 0, $file, $line); - if (in_array($code, Config::get('error.ignore'))) + if( is_null( Config::get('error.ignore') ) ) + { + $error_config = array(); + }else{ + $error_config = Config::get('error.ignore'); + } + + if (in_array($code, error_config)) { return static::log($exception); }