review code pattern consistency
This commit is contained in:
@@ -10,7 +10,8 @@ if ($id) {
|
||||
$row = $qm->getById($id);
|
||||
if (!$row) {
|
||||
http_response_code(404);
|
||||
exit(json_encode(['success' => 0, 'message' => 'Not found.']));
|
||||
$answer['message'] = 'Not found.';
|
||||
exit(json_encode($answer));
|
||||
}
|
||||
$answer['output'] = $row;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user