From c5ae6974bd09837e68a92ea0e8f17fed4666653c Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 5 Aug 2023 21:36:28 +0300 Subject: [PATCH] fix PDO calls --- library/mysql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/mysql.php b/library/mysql.php index cc6d748..b98d5b6 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -180,7 +180,7 @@ class MySQL { $this->_debug->query->update->total++; - $query = $this->_db->query('UPDATE `hostSetting` SET `value` = ?, + $query = $this->_db->prepare('UPDATE `hostSetting` SET `value` = ?, `timeUpdated` = ? WHERE `hostSettingId` = ? @@ -204,7 +204,7 @@ class MySQL { $this->_debug->query->delete->total++; - $query = $this->_db->query('DELETE FROM `hostSetting` WHERE `hostSettingId` = ?'); + $query = $this->_db->prepare('DELETE FROM `hostSetting` WHERE `hostSettingId` = ?'); $query->execute([$hostSettingId]);