diff --git a/image.php b/image.php index 23d606b..535101f 100644 --- a/image.php +++ b/image.php @@ -39,6 +39,8 @@ class image extends objectStructs $annotations = $vars['imageBasic']->annotations; elseif (isset($vars['annotations'])) $annotations = $vars['annotations']; + else + $annotations = array(); $this->annotations = new imageAnnotations($annotations); if (isset($vars['imageConfig'])) diff --git a/imageAnnotations.php b/imageAnnotations.php index 2411590..cfa028e 100644 --- a/imageAnnotations.php +++ b/imageAnnotations.php @@ -21,6 +21,7 @@ class imageAnnotations extends objectStructs parent::__construct($Result); if ($this->roles and empty($this->roles) ) { + $this->Log(__FUNCTION__ . " We have roles, lets explode"); $this->roles = explode(',',$this->roles); } }