]> git.mxchange.org Git - friendica.git/commitdiff
Changed "Contact::select" to "Contact::selectToArray"
authorMichael <heluecht@pirati.ca>
Sat, 27 Jul 2019 15:57:23 +0000 (15:57 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 27 Jul 2019 15:57:23 +0000 (15:57 +0000)
src/Model/Contact.php
src/Module/Admin/Blocklist/Contact.php

index 398acc2d7d06e65ce4cda577d4c74c035204ade9..f01cb736042372f68e17f4829ac9f37b9910862f 100644 (file)
@@ -117,11 +117,9 @@ class Contact extends BaseObject
         * @return array
         * @throws \Exception
         */
-       public static function select(array $fields = [], array $condition = [], array $params = [])
+       public static function selectToArray(array $fields = [], array $condition = [], array $params = [])
        {
-               $statement = DBA::select('contact', $fields, $condition, $params);
-
-               return DBA::toArray($statement);
+               return DBA::selectToArray('contact', $fields, $condition, $params);
        }
 
        /**
index 60fe04bf7a721b74f2eb273a76452b4ab5c2fa21..de3c717e37d06e93ba5d00ea81087a00729521ed 100644 (file)
@@ -53,7 +53,7 @@ class Contact extends BaseAdminModule
 
                $pager = new Pager($a->query_string, 30);
 
-               $contacts = Model\Contact::select([], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
+               $contacts = Model\Contact::selectToArray([], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
 
                $t = Renderer::getMarkupTemplate('admin/blocklist/contact.tpl');
                $o = Renderer::replaceMacros($t, [