fix api
parent
1a2788ea82
commit
7ee9e5bef1
|
|
@ -49,6 +49,10 @@ class MobileApiController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($data)) {
|
||||||
|
$data = (object) [];
|
||||||
|
}
|
||||||
return response()->json($data);
|
return response()->json($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -216,6 +220,9 @@ class MobileApiController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($availableMarks)) {
|
||||||
|
$availableMarks = (object) [];
|
||||||
|
}
|
||||||
return response()->json($availableMarks);
|
return response()->json($availableMarks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue