forked from mirrors/easyappointments
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
|
try
|
||||||
{
|
{
|
||||||
$condition = $id !== NULL ? 'id = ' . $id : '';
|
$condition = $id !== NULL ? 'id = ' . $id : NULL;
|
||||||
$categories = $this->services_model->get_all_categories($condition);
|
$categories = $this->services_model->get_all_categories($condition);
|
||||||
|
|
||||||
if ($id !== NULL && count($categories) === 0)
|
if ($id !== NULL && count($categories) === 0)
|
||||||
|
|
Loading…
Reference in a new issue