Fix session.gc SQL issue. Don't need a * when deleting
This commit is contained in:
parent
efaf95beda
commit
90c5f63d6d
|
@ -147,7 +147,7 @@ class Session {
|
||||||
$now = time();
|
$now = time();
|
||||||
$old = $now - $max;
|
$old = $now - $max;
|
||||||
ZM\Debug('doing session gc ' . $now . '-' . $max. '='.$old);
|
ZM\Debug('doing session gc ' . $now . '-' . $max. '='.$old);
|
||||||
$sth = $this->db->prepare('DELETE * FROM Sessions WHERE access < :old');
|
$sth = $this->db->prepare('DELETE FROM Sessions WHERE access < :old');
|
||||||
$sth->bindParam(':old', $old, PDO::PARAM_INT);
|
$sth->bindParam(':old', $old, PDO::PARAM_INT);
|
||||||
return $sth->execute() ? true : false;
|
return $sth->execute() ? true : false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue