Fix PHP 7.2 warning in Model\Profile

pull/4932/head
Hypolite Petovan 2018-04-26 04:56:42 -04:00
rodzic a9f1f47be2
commit f7f640175a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -950,7 +950,7 @@ class Profile
]; ];
} }
if ((!$is_owner) && ((count($a->profile)) || (!$a->profile['hide-friends']))) { if (!$is_owner && empty($a->profile['hide-friends'])) {
$tabs[] = [ $tabs[] = [
'label' => L10n::t('Contacts'), 'label' => L10n::t('Contacts'),
'url' => System::baseUrl() . '/viewcontacts/' . $nickname, 'url' => System::baseUrl() . '/viewcontacts/' . $nickname,