Corrected argument order
This commit is contained in:
parent
40cf6cab40
commit
228235fa26
2 changed files with 3 additions and 3 deletions
|
@ -562,7 +562,7 @@ class Backend_api extends EA_Controller {
|
||||||
$limit = 1000;
|
$limit = 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
$customers = $this->customers_model->get_batch($where, $order_by, $limit);
|
$customers = $this->customers_model->get_batch($where, $limit, null, $order_by);
|
||||||
|
|
||||||
foreach ($customers as &$customer)
|
foreach ($customers as &$customer)
|
||||||
{
|
{
|
||||||
|
|
|
@ -484,13 +484,13 @@ class Services_model extends EA_Model {
|
||||||
* Get all service category records from database.
|
* Get all service category records from database.
|
||||||
*
|
*
|
||||||
* @param mixed $where
|
* @param mixed $where
|
||||||
* @param mixed $order_by
|
|
||||||
* @param int|null $limit
|
* @param int|null $limit
|
||||||
* @param int|null $offset
|
* @param int|null $offset
|
||||||
|
* @param mixed $order_by
|
||||||
*
|
*
|
||||||
* @return array Returns an array that contains all the service category records.
|
* @return array Returns an array that contains all the service category records.
|
||||||
*/
|
*/
|
||||||
public function get_all_categories($where = NULL, $order_by = NULL, $limit = NULL, $offset = NULL)
|
public function get_all_categories($where = NULL, $limit = NULL, $offset = NULL, $order_by = NULL)
|
||||||
{
|
{
|
||||||
if ($where !== NULL)
|
if ($where !== NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue