diff --git a/web/includes/session.php b/web/includes/session.php index 34ce8b13c..0190f9897 100644 --- a/web/includes/session.php +++ b/web/includes/session.php @@ -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; }