forked from friendica/php-json-ld
Only shallow copy options.
This commit is contained in:
parent
ded32019d7
commit
0cf39870f5
|
@ -1056,7 +1056,7 @@ class JsonLdProcessor {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// expand frame
|
// expand frame
|
||||||
$opts = self::copy($options);
|
$opts = $options;
|
||||||
$opts['keepFreeFloatingNodes'] = true;
|
$opts['keepFreeFloatingNodes'] = true;
|
||||||
$expanded_frame = $this->expand($frame, $opts);
|
$expanded_frame = $this->expand($frame, $opts);
|
||||||
}
|
}
|
||||||
|
@ -1113,7 +1113,7 @@ class JsonLdProcessor {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// convert to RDF dataset then do normalization
|
// convert to RDF dataset then do normalization
|
||||||
$opts = self::copy($options);
|
$opts = $options;
|
||||||
if(isset($opts['format'])) {
|
if(isset($opts['format'])) {
|
||||||
unset($opts['format']);
|
unset($opts['format']);
|
||||||
}
|
}
|
||||||
|
@ -1834,9 +1834,7 @@ class JsonLdProcessor {
|
||||||
if(is_object($value) || is_array($value)) {
|
if(is_object($value) || is_array($value)) {
|
||||||
return unserialize(serialize($value));
|
return unserialize(serialize($value));
|
||||||
}
|
}
|
||||||
else {
|
return $value;
|
||||||
return $value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue