summaryrefslogtreecommitdiff
path: root/server/core/App.php
diff options
context:
space:
mode:
authorYoggzo <yogg@epsina.com>2016-03-27 19:24:03 +0200
committerYoggzo <yogg@epsina.com>2016-03-27 19:24:03 +0200
commite9c7477ff0acedf9b49e508e1543395bbcbf7533 (patch)
treee3236417f9bb7f828de4b49d6ceb45e3986131d9 /server/core/App.php
parentdcf0d8b2ba2547720215f7de55a747bf7ec47a0b (diff)
Modifications in error management and correct error in Image.php
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){