diff --git a/image.php b/image.php index 045bc8d..69c89d0 100644 --- a/image.php +++ b/image.php @@ -38,8 +38,8 @@ class image extends objectStructs if (isset( $vars->imageBasic->annotations) ) $this->annotations = new imageAnnotations($vars->imageBasic->annotations) ; - elseif (isset($vars['annotations'])) - $this->annotations = new imageAnnotations($vars['annotations']) ; + elseif (isset($vars->annotations)) + $this->annotations = new imageAnnotations($vars->annotations) ; } }