From d3bda58500b7f8a3d89fb41c005fe66c0fd7749b Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 30 May 2021 11:26:19 +0200 Subject: [PATCH] fixing another sql error --- webclient/lib/trite.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5