Skip to content

Commit 83524ea

Browse files
committed
ltb-project#308: Fixing debug log level
1 parent bb7573e commit 83524ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

htdocs/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ function sha256($string)
174174
}
175175

176176
# By default, only display error logs and not the other levels
177-
error_reporting($debug_level);
177+
error_reporting(0);
178178
if ($debug) {
179-
error_reporting(E_ALL);
179+
error_reporting($debug_level);
180180
# Set debug for LDAP
181181
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
182182
}

0 commit comments

Comments
 (0)