Skip to content

Commit

Permalink
Fix system notice on login_page.php
Browse files Browse the repository at this point in the history
When $g_display_errors = array(E_ALL => 'halt'), the login page throws a
system notice when checking for E_USER_ERROR setting.

We now also check for E_ALL to avoid this.
  • Loading branch information
dregad committed Jan 21, 2016
1 parent e0d072d commit 0c13846
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion login_page.php
Expand Up @@ -168,7 +168,9 @@ function debug_setting_message ( $p_type, $p_setting, $p_value ) {
}
$t_config = 'display_errors';
$t_errors = config_get_global( $t_config );
if( $t_errors[E_USER_ERROR] != DISPLAY_ERROR_HALT ) {
if( $t_errors[E_ALL] != DISPLAY_ERROR_HALT &&
$t_errors[E_USER_ERROR] != DISPLAY_ERROR_HALT
) {
$t_warnings[] = debug_setting_message(
'integrity',
$t_config . '[E_USER_ERROR]',
Expand Down

0 comments on commit 0c13846

Please sign in to comment.