diff --git a/application/controllers/Backend_api.php b/application/controllers/Backend_api.php index 8619881b..9356a55b 100755 --- a/application/controllers/Backend_api.php +++ b/application/controllers/Backend_api.php @@ -562,7 +562,7 @@ class Backend_api extends EA_Controller { $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) { diff --git a/application/models/Services_model.php b/application/models/Services_model.php index eceb05fe..c56ccbd7 100644 --- a/application/models/Services_model.php +++ b/application/models/Services_model.php @@ -484,13 +484,13 @@ class Services_model extends EA_Model { * Get all service category records from database. * * @param mixed $where - * @param mixed $order_by * @param int|null $limit * @param int|null $offset + * @param mixed $order_by * * @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) {