summaryrefslogtreecommitdiff
path: root/server/core/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/core/App.php')
-rwxr-xr-xserver/core/App.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/server/core/App.php b/server/core/App.php
index 10813bd..48bb9ab 100755
--- a/server/core/App.php
+++ b/server/core/App.php
@@ -112,15 +112,20 @@ class App{
}
public function getPostParam($name){
-
- return $this->postParams[$name];
+
+ if(isset($this->postParams[$name])){
+ return $this->postParams[$name];
+ }else{
+ $this->setOutput("Error", "Missing parameter ".$name);
+ }
}
- public function setPostParam($name, $value){
-
- $this->postParams[$name]= $value;
+
+ public function setPostParam($param, $value){
+ $this->postParams[$param] = $value;
+
}
public function setOutput($key, $out){