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
|
* @return array
|
||||||
* @throws \Exception
|
* @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::selectToArray('contact', $fields, $condition, $params);
|
||||||
|
|
||||||
return DBA::toArray($statement);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -53,7 +53,7 @@ class Contact extends BaseAdminModule
|
||||||
|
|
||||||
$pager = new Pager($a->query_string, 30);
|
$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');
|
$t = Renderer::getMarkupTemplate('admin/blocklist/contact.tpl');
|
||||||
$o = Renderer::replaceMacros($t, [
|
$o = Renderer::replaceMacros($t, [
|
||||||
|
|
Loading…
Reference in a new issue