Fix login JSON errors and WebGIS02 rendering
This commit is contained in:
@@ -94,10 +94,12 @@ switch ($method) {
|
||||
default: jsonError('Method tidak diizinkan',405);
|
||||
}
|
||||
|
||||
function jsonError($msg,$code=400){
|
||||
http_response_code($code);
|
||||
echo json_encode(['success'=>false,'message'=>$msg]);
|
||||
exit;
|
||||
if (!function_exists('jsonError')) {
|
||||
function jsonError($msg,$code=400){
|
||||
http_response_code($code);
|
||||
echo json_encode(['success'=>false,'message'=>$msg]);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user