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)