Merge pull request #4932 from MrPetovan/bug/4928-fix-php-72-warning-profile

Fix PHP 7.2 warning in Model\Profile
This commit is contained in:
Tobias Diekershoff 2018-04-26 16:36:19 +02:00 committed by GitHub
commit eae86951f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[] = [
'label' => L10n::t('Contacts'),
'url' => System::baseUrl() . '/viewcontacts/' . $nickname,