From 90c5f63d6d11f5edfb72b16cae4a5df188cccc86 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 24 Oct 2020 09:05:39 -0400 Subject: [PATCH] Fix session.gc SQL issue. Don't need a * when deleting --- web/includes/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }