From: Banana Date: Sun, 30 May 2021 09:19:17 +0000 (+0200) Subject: fixed an sql query X-Git-Tag: 1.1~3 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=6987716324f8995f3f8e01273dec3c4ec2439a46;p=bibliotheca-php.git fixed an sql query --- diff --git a/webclient/lib/managecollections.class.php b/webclient/lib/managecollections.class.php index 5e0898d..324153d 100644 --- a/webclient/lib/managecollections.class.php +++ b/webclient/lib/managecollections.class.php @@ -445,7 +445,7 @@ class ManageCollections { $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($id)."'"; if(QUERY_DEBUG) error_log("[QUERY] ".__METHOD__." query: ".var_export($queryStr,true)); try {