From 40cf6cab4044ed014793aa6518151de49e39fab7 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 7 Dec 2020 22:55:31 +0200 Subject: [PATCH] Renamed variable --- application/controllers/api/v1/Categories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {