mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Quell missing argument warning in clear_expired_sessions().
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
3a018bb53f
commit
2188d2a4f2
1 changed files with 2 additions and 1 deletions
|
@ -798,7 +798,7 @@ function user_is_privileged( $id )
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clear out old expired sessions.
|
# Clear out old expired sessions.
|
||||||
function clear_expired_sessions($dbh) {
|
function clear_expired_sessions($dbh = null) {
|
||||||
global $LOGIN_TIMEOUT;
|
global $LOGIN_TIMEOUT;
|
||||||
|
|
||||||
if (empty($dbh))
|
if (empty($dbh))
|
||||||
|
@ -809,3 +809,4 @@ function clear_expired_sessions($dbh) {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue