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/Test/AppTestClass.php | |
| parent | dcf0d8b2ba2547720215f7de55a747bf7ec47a0b (diff) | |
Modifications in error management and correct error in Image.php
Diffstat (limited to 'server/Test/AppTestClass.php')
| -rwxr-xr-x | server/Test/AppTestClass.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/Test/AppTestClass.php b/server/Test/AppTestClass.php index 3f8abbe..a663514 100755 --- a/server/Test/AppTestClass.php +++ b/server/Test/AppTestClass.php @@ -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){
|
