v.2.14
Update migrations
This commit is contained in:
@@ -21,10 +21,17 @@ class GETReports extends HRCCommand implements HRCCommandInterface {
|
||||
'end_date' => date('d.m.Y', strtotime($report['end_date'])),
|
||||
);
|
||||
}
|
||||
return [
|
||||
'status' => 'success',
|
||||
'reports' => $data,
|
||||
];
|
||||
if (isset($data)) {
|
||||
return [
|
||||
'status' => 'success',
|
||||
'reports' => $data,
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
'status' => 'success',
|
||||
'reports' => [],
|
||||
];
|
||||
}
|
||||
} else {
|
||||
return [
|
||||
'status' => 'success',
|
||||
|
||||
Reference in New Issue
Block a user