X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FForumManager.php;h=8f38ed3a38eac9e5f81d1f325c74abab2eeb4b58;hb=0cd9db9cb7f4c96f597e37590a536eaae123238d;hp=47a4d55a47737ca4bf8c91c1e18c1439ef287681;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/include/ForumManager.php b/include/ForumManager.php index 47a4d55a47..8f38ed3a38 100644 --- a/include/ForumManager.php +++ b/include/ForumManager.php @@ -1,5 +1,7 @@ $contact['url'], 'name' => $contact['name'], @@ -76,7 +78,7 @@ class ForumManager { */ public static function widget($uid,$cid = 0) { - if (! intval(feature_enabled(local_user(),'forumlist_widget'))) + if(! intval(feature_enabled(local_user(),'forumlist_widget'))) return; $o = ''; @@ -92,7 +94,7 @@ class ForumManager { $id = 0; - foreach ($contacts as $contact) { + foreach($contacts as $contact) { $selected = (($cid == $contact['id']) ? ' forum-selected' : ''); @@ -136,7 +138,7 @@ class ForumManager { public static function profile_advanced($uid) { $profile = intval(feature_enabled($uid,'forumlist_profile')); - if (! $profile) + if(! $profile) return; $o = ''; @@ -151,20 +153,16 @@ class ForumManager { $total_shown = 0; - foreach ($contacts as $contact) { + foreach($contacts as $contact) { $forumlist .= micropro($contact,false,'forumlist-profile-advanced'); $total_shown ++; - - if ($total_shown == $show_total) { + if($total_shown == $show_total) break; - } } - if (count($contacts) > 0) { + if(count($contacts) > 0) $o .= $forumlist; - } - - return $o; + return $o; } /**