]> git.mxchange.org Git - friendica.git/commitdiff
do not display contact_block if config for num shown is 0
authorfriendica <info@friendica.com>
Sun, 12 Feb 2012 07:49:05 +0000 (23:49 -0800)
committerfriendica <info@friendica.com>
Sun, 12 Feb 2012 07:49:05 +0000 (23:49 -0800)
include/text.php

index 9e67d36a9823571aa8760debe45e6b756bf62ddd..63846fb10b11562799cf7b792b686e295c7b9414 100755 (executable)
@@ -538,8 +538,10 @@ function contact_block() {
        $a = get_app();
 
        $shown = get_pconfig($a->profile['uid'],'system','display_friend_count');
-       if(! $shown)
+       if($shown === false)
                $shown = 24;
+       if($shown == 0)
+               return;
 
        if((! is_array($a->profile)) || ($a->profile['hide-friends']))
                return $o;