Skip to content

Commit 5147860

Browse files
committed
bug fix - in simultaneous login preventer
1 parent 634987f commit 5147860

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inc/auth.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ class Auth {
267267
return false;
268268
}
269269
}
270-
271270
return $this->auth["uid"];
272271
} else {
273272
return false;
@@ -310,7 +309,7 @@ class Auth {
310309
function auth_delete_old_sessions() {
311310
global $sess;
312311
if ($this->auth["uname"]<>"admin") {
313-
$this->db->prepare("DELETE FROM active_sessions WHERE name=? and sid!=? and username=");
312+
$this->db->prepare("DELETE FROM active_sessions WHERE name=? and sid!=? and username=?");
314313
$this->db->execute($sess->name,$sess->id,$this->auth["uname"]);
315314
}
316315
}

0 commit comments

Comments
 (0)