diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index df90fccd..525f3fa9 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -1839,7 +1839,7 @@ class EmployeeRestController extends AdminController else if($key == 'childrens'){ $text = ["child"]; } else if($key == 'parents-in-law'){ $text = ["parent_in_law"];} else if($key ==='either-parents-pil') { $text = ["parent", "parent_in_law"];} - else{ $text = $key; } + else{ $text = [$key]; } $whereArray = array_merge($whereArray, $text); } } @@ -1893,7 +1893,7 @@ class EmployeeRestController extends AdminController else if($key == 'childrens'){ $text = ["child"]; } else if($key == 'parents-in-law'){ $text = ["parent_in_law"];} else if($key ==='either-parents-pil') { $text = ["parent", "parent_in_law"];} - else{ $text = $key; } + else{ $text = [$key]; } $whereArray = array_merge($whereArray, $text); } }