pb resolu

This commit is contained in:
Yoggzo 2016-03-02 15:28:09 +01:00
parent 671f03df98
commit 0161194d08
2 changed files with 12 additions and 5 deletions

View file

@ -153,7 +153,11 @@ class image implements Core{
*/
private function listImage(){
try{
$result = array();
$l = $this->libClass->listImages();
foreach($l as $tmp)
$result[] = $tmp;
error_log(var_export($result, true), 0);
if(!isset($l)){ // if the list is empty there is no images
$this->app->setOutput("Error", "No image");
}
@ -166,8 +170,8 @@ class image implements Core{
}catch(NotImplementedError $e){
$this->app->getErrorInstance->NotImplementedHandler($e);
}
return $l;
//return $l;
$this->app->setOutput("Images", $result);
}
/**