From 6781c8df1823cd26610b4b6a399ba27e250113c4 Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Thu, 7 May 2015 15:09:31 +0200 Subject: [PATCH] Dev: fix : don't break on notice with debug=>1 --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 8810604ea63..e72e04d8c79 100644 --- a/index.php +++ b/index.php @@ -157,7 +157,10 @@ if ($aSettings['config']['debug']>0) { define('YII_DEBUG', true); - error_reporting(E_ALL); + if($aSettings['config']['debug']>1) + error_reporting(E_ALL); + else + error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); } else {