Fix for several fatal errors

This commit is contained in:
Michael 2019-01-23 21:54:20 +00:00
parent 08da1ed038
commit 0fdab4ed10
6 changed files with 12 additions and 13 deletions

View file

@ -57,9 +57,9 @@ class ContactBlock
$contacts_title = L10n::t('No contacts');
if (!$total) {
$micropro = [];
} else {
$micropro = [];
if ($total) {
// Only show followed for personal accounts, followers for pages
if (defaults($profile, 'account-type', User::ACCOUNT_TYPE_PERSON) == User::ACCOUNT_TYPE_PERSON) {
$rel = [Contact::FOLLOWER, Contact::FRIEND];