Return empty array for job order when no ongoing job order. #424
This commit is contained in:
parent
febd4d6e09
commit
d61d71804d
1 changed files with 4 additions and 4 deletions
|
|
@ -2047,7 +2047,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
||||||
if (isset($data['error']))
|
if (isset($data['error']))
|
||||||
{
|
{
|
||||||
$data['title'] = 'Failed Get Ongoing Job Order';
|
$data['title'] = 'Failed Get Ongoing Job Order';
|
||||||
$data['job_order'] = null;
|
$data['job_order'] = [];
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2073,9 +2073,9 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
||||||
if ($jo == null)
|
if ($jo == null)
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'title' => 'Failed Get Ongoing Job Order',
|
//'title' => 'Failed Get Ongoing Job Order',
|
||||||
'error' => 'No active job order.',
|
//'error' => 'No active job order.',
|
||||||
'job_order' => null,
|
'job_order' => [],
|
||||||
];
|
];
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue