Explorar el Código

missing parameter wraper

master
Robin Thoni hace 9 años
padre
commit
02721dc72c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      utils.php

+ 5
- 0
utils.php Ver fichero

@@ -17,4 +17,9 @@ function error($code, $message)
17 17
   header("HTTP/ $code $message");
18 18
   die(json_encode(array("code" => intval($code), "message" => $message)));
19 19
 }
20
+
21
+function error_missing()
22
+{
23
+  error(400, "Missing Parameter");
24
+}
20 25
 ?>

Loading…
Cancelar
Guardar