Browse Source

do not display contact_block if config for num shown is 0

pull/32/head^2
friendica 11 years ago
parent
commit
8b101c6cb8
  1. 4
      include/text.php

4
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;

Loading…
Cancel
Save