diff options
| author | Yoggzo <yogg@epsina.com> | 2016-03-27 19:24:03 +0200 |
|---|---|---|
| committer | Yoggzo <yogg@epsina.com> | 2016-03-27 19:24:03 +0200 |
| commit | e9c7477ff0acedf9b49e508e1543395bbcbf7533 (patch) | |
| tree | e3236417f9bb7f828de4b49d6ceb45e3986131d9 /server/core/App.php | |
| parent | dcf0d8b2ba2547720215f7de55a747bf7ec47a0b (diff) | |
Modifications in error management and correct error in Image.php
Diffstat (limited to 'server/core/App.php')
| -rwxr-xr-x | server/core/App.php | 15 |
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){
|
