Browse Source

missing parameter wraper

master
Robin Thoni 10 years ago
parent
commit
02721dc72c
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      utils.php

+ 5
- 0
utils.php View File

@@ -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…
Cancel
Save