mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
Changed "Contact::select" to "Contact::selectToArray"
This commit is contained in:
parent
89454fabdb
commit
1a3bf05dfb
2 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue