Renamed variable

This commit is contained in:
Alex Tselegidis 2020-12-07 22:55:31 +02:00
parent 90c8ca157d
commit 40cf6cab40

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