From b5c0c0e180bf377588b08d54d3e511fa1b57ca4f Mon Sep 17 00:00:00 2001 From: sbyrd Date: Thu, 17 Dec 2020 22:45:44 -0500 Subject: [PATCH] roles --- imageAnnotations.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imageAnnotations.php b/imageAnnotations.php index e9b5c11..821d1df 100644 --- a/imageAnnotations.php +++ b/imageAnnotations.php @@ -21,8 +21,9 @@ class imageAnnotations extends objectStructs parent::__construct($Result); $this->Log(__FUNCTION__ . " Load imageAnnotations with".print_r($Result,true)); - if (!is_array($this->roles)) - $this->roles = explode(',',$this->roles); + if (is_string($Result->roles)) + $this->roles = explode(',',$Result->roles); + }