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

@ -89,9 +89,11 @@ class AppTest{
}
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){