From: Michael Date: Sat, 2 Jun 2018 17:07:28 +0000 (+0000) Subject: Fix SQL error in tagcloud X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41423e578a623c267cf59ecd5d5834cf443f9571;p=friendica.git Fix SQL error in tagcloud --- 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 );