]> git.mxchange.org Git - friendica.git/commitdiff
Fix PHP 7.2 Warning in Model\Contact
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 16 Jun 2018 00:50:31 +0000 (20:50 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 16 Jun 2018 00:50:31 +0000 (20:50 -0400)
src/Model/Contact.php

index e504849f7c11fbf5dbcfd337cd1af685ad13922b..f354f89c7d0074a962723edf8ec1f6dcd5c2707e 100644 (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;
        }