]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
fixed an sql query
authorBanana <mail@bananas-playground.net>
Sun, 30 May 2021 09:19:17 +0000 (11:19 +0200)
committerBanana <mail@bananas-playground.net>
Sun, 30 May 2021 09:19:17 +0000 (11:19 +0200)
webclient/lib/managecollections.class.php

index 5e0898d38969f5644b61a006e96aef15d0dcf554..324153da21ad1ddeff0a6393cab8126735498535 100644 (file)
@@ -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 {