diff --git a/jsonld.php b/jsonld.php index 82213ca..fa1f2b8 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1321,6 +1321,10 @@ function _flatten($parent, $parentProperty, $value, $subjects) { $subject->$key = new ArrayObject(array($subject->$key)); } + else + { + $subject->$key = new ArrayObject($subject->$key); + } } else {