From 6e528aaf153b3eaa3ce48d8a7cedf1e80815b8de Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 3 Sep 2018 15:40:02 +0200 Subject: [PATCH] Changed ' to " in sql query (#634) --- CHANGELOG.rst | 1 + src/psm/Util/Server/HistoryGraph.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b2ac6b3a..37d92561 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ Changelog Not yet released ---------------- +* #634: Changed ' to " in sql query, both were used. * #629: Fix bug that made it impossible to check rdp:// and fixed port update. * b49659f: Added question to notification faq about not recieving notifications. * ef28908: Indentation fix. diff --git a/src/psm/Util/Server/HistoryGraph.php b/src/psm/Util/Server/HistoryGraph.php index 605e4912..28e4f0c6 100644 --- a/src/psm/Util/Server/HistoryGraph.php +++ b/src/psm/Util/Server/HistoryGraph.php @@ -179,8 +179,8 @@ class HistoryGraph { } $records = $this->db->execute( - 'SELECT * - FROM `'.PSM_DB_PREFIX."servers_$type` + "SELECT * + FROM `".PSM_DB_PREFIX."servers_$type` WHERE `server_id` = :server_id AND `date` BETWEEN :start_time AND :end_time ORDER BY `date` ASC", array( 'server_id' => $server_id,