From 228235fa269fd5958997e8df9ecb4b5850691434 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 7 Dec 2020 22:56:37 +0200 Subject: [PATCH] Corrected argument order --- application/controllers/Backend_api.php | 2 +- application/models/Services_model.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {