Renamed variable

This commit is contained in:
Alex Tselegidis 2020-12-07 22:55:31 +02:00
parent 90c8ca157d
commit 40cf6cab40
1 changed files with 2 additions and 2 deletions

View File

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