Modifications in error management and correct error in Image.php
This commit is contained in:
parent
dcf0d8b2ba
commit
e9c7477ff0
5 changed files with 124 additions and 39 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue