From: friendica Date: Sun, 12 Feb 2012 07:49:05 +0000 (-0800) Subject: do not display contact_block if config for num shown is 0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b101c6cb865c24cefd610e01ad628abd1152217;p=friendica.git do not display contact_block if config for num shown is 0 --- diff --git a/include/text.php b/include/text.php index 9e67d36a98..63846fb10b 100755 --- a/include/text.php +++ b/include/text.php @@ -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;