From d894c98d669c79ccfdfabdd17cc2ca472a3dafd4 Mon Sep 17 00:00:00 2001 From: sbyrd Date: Thu, 17 Dec 2020 22:36:23 -0500 Subject: [PATCH] roles --- image.php | 2 ++ imageAnnotations.php | 1 + 2 files changed, 3 insertions(+) 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); } }