From: Banana Date: Sun, 30 May 2021 09:26:19 +0000 (+0200) Subject: fixing another sql error X-Git-Tag: 1.1~1 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=d3bda58500b7f8a3d89fb41c005fe66c0fd7749b;p=bibliotheca-php.git fixing another sql error --- diff --git a/webclient/lib/trite.class.php b/webclient/lib/trite.class.php index 2761d53..9538730 100644 --- a/webclient/lib/trite.class.php +++ b/webclient/lib/trite.class.php @@ -316,7 +316,7 @@ class Trite { $queryStr = "SELECT `t`.`id`, `t`.`name`, `t`.`description`, `t`.`action`, `t`.`target` FROM `".DB_PREFIX."_tool2collection` AS t2c - LEFT JOIN `".DB_PREFIX."_tool` AS t ON t2c.fk_collection_id = t.id + LEFT JOIN `".DB_PREFIX."_tool` AS t ON t.id = t2c.fk_tool_id WHERE t2c.fk_collection_id = '".$this->_DB->real_escape_string($this->_id)."'"; if(QUERY_DEBUG) error_log("[QUERY] ".__METHOD__." query: ".var_export($queryStr,true)); try {