Changed "Contact::select" to "Contact::selectToArray"

This commit is contained in:
Michael 2019-07-27 15:57:23 +00:00
parent 89454fabdb
commit 1a3bf05dfb
2 changed files with 3 additions and 5 deletions

View 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);
}
/**

View 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, [