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); + }