pb resolu
This commit is contained in:
parent
671f03df98
commit
0161194d08
2 changed files with 12 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue