From 41423e578a623c267cf59ecd5d5834cf443f9571 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 2 Jun 2018 17:07:28 +0000 Subject: [PATCH] Fix SQL error in tagcloud --- src/Content/Widget/TagCloud.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Content/Widget/TagCloud.php b/src/Content/Widget/TagCloud.php index 19ea3eea04..7d96587c25 100644 --- a/src/Content/Widget/TagCloud.php +++ b/src/Content/Widget/TagCloud.php @@ -91,11 +91,13 @@ class TagCloud // Fetch tags $r = dba::p("SELECT `term`, COUNT(`term`) AS `total` FROM `term` LEFT JOIN `item` ON `term`.`oid` = `item`.`id` + LEFT JOIN `user-item` ON `user-item`.`iid` = `item`.`id` AND `user-item`.`uid` = ? WHERE `term`.`uid` = ? AND `term`.`type` = ? AND `term`.`otype` = ? AND $item_condition $sql_options GROUP BY `term` ORDER BY `total` DESC $limit", $uid, + $uid, $type, TERM_OBJ_POST ); -- 2.39.5