forked from friendica/php-json-ld
Remove unnecessary lines.
This commit is contained in:
parent
080dec516e
commit
657edcec47
10
jsonld.php
10
jsonld.php
|
@ -1452,14 +1452,8 @@ class JsonLdProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if graph is not the default graph
|
// if graph is not the default graph
|
||||||
if($name !== '') {
|
if($name !== '' && !property_exists($default_graph->subjects, $name)) {
|
||||||
// add graph subject to default graph as needed
|
$default_graph->subjects->{$name} = (object)array('@id' => $name);
|
||||||
if(!property_exists($default_graph->subjects, $name)) {
|
|
||||||
$default_graph->subjects->{$name} = (object)array('@id' => $name);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$default_graph->subjects->{$name};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// add subject to graph as needed
|
// add subject to graph as needed
|
||||||
|
|
Loading…
Reference in a new issue