function api_output_error($code = 999, $msg = '', $more = array()) { $more['is_error'] = 1; $out = array('error' => array('code' => $code, 'error' => $msg, 'message' => $msg)); api_log($out); api_output_send($out, $more); }
function api_output_error($code = 999, $msg = '', $more = array()) { $rsp['stat'] = 'error'; $out = array('error' => array('code' => $code, 'error' => $msg)); $more['is_error'] = 1; api_output_send($out, $more); }