diff --git a/image.php b/image.php index 01a5bff..045bc8d 100644 --- a/image.php +++ b/image.php @@ -37,9 +37,9 @@ class image extends objectStructs (isset($vars->imageName) ? $vars->imageName : "" ) ) ) ; if (isset( $vars->imageBasic->annotations) ) - $annotations = $vars['imageBasic']->annotations; + $this->annotations = new imageAnnotations($vars->imageBasic->annotations) ; elseif (isset($vars['annotations'])) - $annotations = $vars['annotations']; + $this->annotations = new imageAnnotations($vars['annotations']) ; } }