forked from friendica/php-json-ld
Fixed @embed=false bug.
This commit is contained in:
parent
72482dbe97
commit
093e3277d8
|
@ -2488,7 +2488,7 @@ function _subframe(
|
||||||
// autoembed mode is off.
|
// autoembed mode is off.
|
||||||
$embedOn =
|
$embedOn =
|
||||||
((property_exists($frame, '@embed') and $frame->{'@embed'}) or
|
((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));
|
($embed === null or ($embed->autoembed and !$autoembed));
|
||||||
|
|
||||||
if(!$embedOn)
|
if(!$embedOn)
|
||||||
|
|
Loading…
Reference in a new issue