Fix session.gc SQL issue. Don't need a * when deleting

This commit is contained in:
Isaac Connor 2020-10-24 09:05:39 -04:00
parent efaf95beda
commit 90c5f63d6d
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class Session {
$now = time();
$old = $now - $max;
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);
return $sth->execute() ? true : false;
}