Merge pull request #5227 from MrPetovan/bug/fix-php72-notice-model-contact

Fix PHP 7.2 Warning in Model\Contact
This commit is contained in:
Tobias Diekershoff 2018-06-16 08:02:13 +02:00 committed by GitHub
commit b729e8b21c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1070,9 +1070,11 @@ class Contact extends BaseObject
'limit' => [$a->pager['start'], $a->pager['itemspage']]];
$r = Item::select(local_user(), [], $condition, $params);
$o = conversation($a, dba::inArray($r), 'contact-posts', false);
$items = dba::inArray($r);
$o = conversation($a, $items, 'contact-posts', false);
$o .= alt_pager($a, count($r));
$o .= alt_pager($a, count($items));
return $o;
}