From: Banana Date: Sun, 29 Dec 2019 08:43:36 +0000 (+0100) Subject: fixed a bug in tag selection sql query X-Git-Tag: 2.3_2019-12-30~9 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=d522a3f89129168610301b4dc19b350161bfc2a5;p=insipid.git fixed a bug in tag selection sql query --- 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)) {