Browse files

Fix PHP admin check for error logging/reporting

The check for "PHP errors are being logged or reported" in the new
admin check interface has incorrect logic, causing it to always report
a warning condition.

The warning should only be printed if both display_errors and
log_errors are Off.

Fixes #13545, #11576
  • Loading branch information...
1 parent 46873eb commit 88ca322ba14bc1e8f43b36381db07223fa675134 @dregad dregad committed Nov 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/check/check_php_inc.php
@@ -117,7 +117,7 @@
'PHP errors are being logged or reported',
- !( ini_get_bool( 'display_errors' ) || ini_get_bool( 'log_errors' ) ),
+ ini_get_bool( 'display_errors' ) || ini_get_bool( 'log_errors' ),
array( false => 'PHP is not currently set to log or report errors and thus you may be unaware of PHP errors that occur.' )

0 comments on commit 88ca322

Please sign in to comment.