mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
do not display contact_block if config for num shown is 0
This commit is contained in:
parent
4cfb1fe0cf
commit
8b101c6cb8
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue