diff --git a/application/controllers/api/v1/Categories.php b/application/controllers/api/v1/Categories.php index f916e6b4..dbf3d4e8 100644 --- a/application/controllers/api/v1/Categories.php +++ b/application/controllers/api/v1/Categories.php @@ -49,9 +49,9 @@ class Categories extends API_V1_Controller { { try { - $conditions = $id !== NULL ? ['id' => $id] : NULL; + $where = $id !== NULL ? ['id' => $id] : NULL; - $categories = $this->services_model->get_all_categories($conditions); + $categories = $this->services_model->get_all_categories($where); if ($id !== NULL && count($categories) === 0) {