mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-23 07:03:26 +03:00
Corrected condition fallback value in Categories.php API controller
This commit is contained in:
parent
35f8553300
commit
d13df8f8e1
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Categories extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$condition = $id !== NULL ? 'id = ' . $id : '';
|
||||
$condition = $id !== NULL ? 'id = ' . $id : NULL;
|
||||
$categories = $this->services_model->get_all_categories($condition);
|
||||
|
||||
if ($id !== NULL && count($categories) === 0)
|
||||
|
|
Loading…
Reference in a new issue