]> git.mxchange.org Git - friendica.git/commitdiff
Fix PHP 7.2 warning in Model\Profile
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 26 Apr 2018 08:56:42 +0000 (04:56 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 26 Apr 2018 08:56:42 +0000 (04:56 -0400)
src/Model/Profile.php

index f86fce9b21a61c9348e04955801d76ab6f64c853..d4773a806233795bbe51ff42873e828ebaff01df 100644 (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,