From 915b154d8c0e1256f8d8e7f384bef2e9a7980977 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Fri, 14 Oct 2011 16:24:07 -0400 Subject: [PATCH] Fixed typos. --- jsonld.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonld.php b/jsonld.php index 99e6b5b..6295f06 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2604,10 +2604,10 @@ function _subframe( $embed = new stdClass(); $embeds->{$iri} = $embed; } - else + // replace the existing embed with a reference + else if($embed->{$parent} !== null) { - // replace the existing embed with a reference and update embed info - $embed->{$parent}->{$entry->key} = $value->{'@subject'}; + $embed->{$parent}->{$embed->key} = $value->{'@subject'}; } // update embed entry