From 093e3277d85c58cf886f3b6e9d079892143f022c Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Thu, 20 Oct 2011 20:31:38 -0400 Subject: [PATCH] Fixed @embed=false bug. --- jsonld.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonld.php b/jsonld.php index 556bc43..48f5012 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2488,7 +2488,7 @@ function _subframe( // autoembed mode is off. $embedOn = ((property_exists($frame, '@embed') and $frame->{'@embed'}) or - $options->defaults->embedOn) and + (!property_exists($frame, '@embed') and $options->defaults->embedOn)) and ($embed === null or ($embed->autoembed and !$autoembed)); if(!$embedOn)