X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FForumManager.php;h=c2a20df29faf069bd0b3fc987b33e3d12b918e7f;hb=df8b522f6b96bc3a631e608ee430555590e91f0c;hp=943d5ff01077273b17fb6c0c140665db1640af39;hpb=f2b690f87636df5f0e929e3582e0e21aa79789d0;p=friendica.git diff --git a/include/ForumManager.php b/include/ForumManager.php index 943d5ff010..c2a20df29f 100644 --- a/include/ForumManager.php +++ b/include/ForumManager.php @@ -2,7 +2,7 @@ /** * @file include/ForumManager.php - * @brief ForumManager class with it's methods related to forum functionality * + * @brief ForumManager class with its methods related to forum functionality * */ /** @@ -26,6 +26,7 @@ class ForumManager { * 'name' => 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(dba::is_result($contacts)) { + if (dbm::is_result($contacts)) { $id = 0;