summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/lib/acctfuncs.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index a8492577..61207778 100644
--- a/web/lib/acctfuncs.inc
+++ b/web/lib/acctfuncs.inc
@@ -798,7 +798,7 @@ function user_is_privileged( $id )
}
# Clear out old expired sessions.
-function clear_expired_sessions($dbh) {
+function clear_expired_sessions($dbh = null) {
global $LOGIN_TIMEOUT;
if (empty($dbh))
@@ -809,3 +809,4 @@ function clear_expired_sessions($dbh) {
return;
}
+