Skip to content

Commit

Permalink
Dev: fix : don't break on notice with debug=>1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed May 7, 2015
1 parent 6731093 commit 6781c8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.php
Expand Up @@ -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
{
Expand Down

1 comment on commit 6781c8d

@Shnoulle
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very good fix, maybe a better manual in config.php is OK

Please sign in to comment.