Corrected argument order

This commit is contained in:
Alex Tselegidis 2020-12-07 22:56:37 +02:00
parent 40cf6cab40
commit 228235fa26
2 changed files with 3 additions and 3 deletions

View file

@ -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)
{

View file

@ -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)
{