]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
fixing another sql error
authorBanana <mail@bananas-playground.net>
Sun, 30 May 2021 09:26:19 +0000 (11:26 +0200)
committerBanana <mail@bananas-playground.net>
Sun, 30 May 2021 09:26:19 +0000 (11:26 +0200)
webclient/lib/trite.class.php

index 2761d53a74ac169684c00fcbf9a1ae8e20d3c542..9538730a77b21314bdbb4bbc51ba141391925487 100644 (file)
@@ -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 {