aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-11 23:49:05 -0800
committerfriendica <info@friendica.com>2012-02-11 23:49:05 -0800
commit8b101c6cb865c24cefd610e01ad628abd1152217 (patch)
tree31585324b2fa40d7a239fd6992435a5d186f7dff
parent4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a (diff)
downloadvolse-hubzilla-8b101c6cb865c24cefd610e01ad628abd1152217.tar.gz
volse-hubzilla-8b101c6cb865c24cefd610e01ad628abd1152217.tar.bz2
volse-hubzilla-8b101c6cb865c24cefd610e01ad628abd1152217.zip
do not display contact_block if config for num shown is 0
-rwxr-xr-xinclude/text.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 9e67d36a9..63846fb10 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;