From 14308c21db13717881dc6ed446799dc2324ae80b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 14 Apr 2011 16:25:13 -0400 Subject: [PATCH] Don't show featuredusersection by default --- lib/featureduserssection.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/featureduserssection.php b/lib/featureduserssection.php index 8dacdc332d..1b0718a05f 100644 --- a/lib/featureduserssection.php +++ b/lib/featureduserssection.php @@ -42,6 +42,15 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { */ class FeaturedUsersSection extends ProfileSection { + function show() + { + $featured_nicks = common_config('nickname', 'featured'); + if (empty($featured_nicks)) { + return; + } + parent::show(); + } + function getProfiles() { $featured_nicks = common_config('nickname', 'featured'); -- 2.39.5