]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't show featuredusersection by default
authorEvan Prodromou <evan@status.net>
Thu, 14 Apr 2011 20:25:13 +0000 (16:25 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Apr 2011 20:25:13 +0000 (16:25 -0400)
lib/featureduserssection.php

index 8dacdc332d244f1bce3521c54b9f4c8bb9d90fbc..1b0718a05f5a8462592bafcb56f84399ae038808 100644 (file)
@@ -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');