From d522a3f89129168610301b4dc19b350161bfc2a5 Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 29 Dec 2019 09:43:36 +0100 Subject: [PATCH] fixed a bug in tag selection sql query --- ChangeLog | 2 +- webroot/index.php | 2 +- webroot/lib/management.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b93697f..a7a1fad 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ version x.x - Guardian of Steel (tba) - + + Fixed a bug in tag selection SQL query version 2.2 - Guardian of Ice - (2019-02-27) diff --git a/webroot/index.php b/webroot/index.php index 7a3013c..4150334 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -32,7 +32,7 @@ ini_set('error_reporting',-1); // E_ALL & E_STRICT # time settings date_default_timezone_set('Europe/Berlin'); -define('DEBUG',false); +define('DEBUG',true); ## check request $_urlToParse = filter_var($_SERVER['QUERY_STRING'],FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); diff --git a/webroot/lib/management.class.php b/webroot/lib/management.class.php index 8188d9a..696c399 100644 --- a/webroot/lib/management.class.php +++ b/webroot/lib/management.class.php @@ -154,7 +154,7 @@ class Management { FROM `".DB_PREFIX."_tagrelation` AS tr, `".DB_PREFIX."_link` AS t WHERE tr.linkid = t.id"; $queryStr .= " AND ".$this->_decideLinkTypeForQuery(); - $queryStr .= "GROUP BY tagId"; + $queryStr .= " GROUP BY tagId"; $query = $this->DB->query($queryStr); if(!empty($query)) { -- 2.39.5