Modifications in error management and correct error in Image.php

This commit is contained in:
Yoggzo 2016-03-27 19:24:03 +02:00
parent dcf0d8b2ba
commit e9c7477ff0
5 changed files with 124 additions and 39 deletions

View file

@ -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){