From: Hypolite Petovan Date: Thu, 26 Apr 2018 08:56:42 +0000 (-0400) Subject: Fix PHP 7.2 warning in Model\Profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7f640175ab33d54ee231b625d31738382b04f20;p=friendica.git Fix PHP 7.2 warning in Model\Profile --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index f86fce9b21..d4773a8062 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -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,