X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FForumManager.php;h=d01ece4d95377fb2f3643484d095fda8ebeb74ee;hb=f9bd6894de9e56bbbee4379e878c6d1f5703f51b;hp=6fede0204d945f3901f91c266ab4b7c1b38b1680;hpb=d10eee45b9d539a282180344fb5d5972a887e0ba;p=friendica.git diff --git a/include/ForumManager.php b/include/ForumManager.php index 6fede0204d..d01ece4d95 100644 --- a/include/ForumManager.php +++ b/include/ForumManager.php @@ -1,12 +1,12 @@ forum name * 'id' => number of the key from the array * 'micro' => contact photo in format micro + * 'thumb' => contact photo in format thumb */ public static function get_list($uid, $showhidden = true, $lastitem, $showprivate = false) { @@ -38,7 +39,7 @@ class ForumManager { $select = '(`forum` OR `prv`)'; } - $contacts = q("SELECT `contact`.`id`, `contact`.`url`, `contact`.`name`, `contact`.`micro` FROM `contact` + $contacts = q("SELECT `contact`.`id`, `contact`.`url`, `contact`.`name`, `contact`.`micro`, `contact`.`thumb` FROM `contact` WHERE `network`= 'dfrn' AND $select AND `uid` = %d AND NOT `blocked` AND NOT `hidden` AND NOT `pending` AND NOT `archive` AND `success_update` > `failure_update` @@ -55,6 +56,7 @@ class ForumManager { 'name' => $contact['name'], 'id' => $contact['id'], 'micro' => $contact['micro'], + 'thumb' => $contact['thumb'], ); } return($forumlist); @@ -86,7 +88,7 @@ class ForumManager { $total = count($contacts); $visible_forums = 10; - if(count($contacts)) { + if(dbm::is_result($contacts)) { $id = 0;