X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FForumManager.php;h=039b4f5d248af865a626228229c7399243a5de11;hb=98686e9091189b536d7a08ced3bcafe3f41cca7c;hp=c2a20df29faf069bd0b3fc987b33e3d12b918e7f;hpb=291906de5f3074407253241e5ccbb5af633e0c22;p=friendica.git diff --git a/include/ForumManager.php b/include/ForumManager.php index c2a20df29f..039b4f5d24 100644 --- a/include/ForumManager.php +++ b/include/ForumManager.php @@ -1,5 +1,9 @@ `failure_update` $order ", - intval($uid) + $uid ); if (!$contacts) return($forumlist); - foreach($contacts as $contact) { + while ($contact = dba::fetch($contacts)) { $forumlist[] = array( 'url' => $contact['url'], 'name' => $contact['name'], @@ -59,6 +63,8 @@ class ForumManager { 'thumb' => $contact['thumb'], ); } + dba::close($contacts); + return($forumlist); } @@ -88,7 +94,7 @@ class ForumManager { $total = count($contacts); $visible_forums = 10; - if (dbm::is_result($contacts)) { + if (DBM::is_result($contacts)) { $id = 0; @@ -102,7 +108,7 @@ class ForumManager { 'name' => $contact['name'], 'cid' => $contact['id'], 'selected' => $selected, - 'micro' => App::remove_baseurl(proxy_url($contact['micro'], false, PROXY_SIZE_MICRO)), + 'micro' => System::removedBaseUrl(proxy_url($contact['micro'], false, PROXY_SIZE_MICRO)), 'id' => ++$id, ); $entries[] = $entry;