Remove unnecessary lines.

This commit is contained in:
Dave Longley 2012-05-02 16:49:42 -04:00
parent 080dec516e
commit 657edcec47
1 changed files with 2 additions and 8 deletions

View File

@ -1452,14 +1452,8 @@ class JsonLdProcessor {
}
// if graph is not the default graph
if($name !== '') {
// add graph subject to default graph as needed
if(!property_exists($default_graph->subjects, $name)) {
$default_graph->subjects->{$name} = (object)array('@id' => $name);
}
else {
$default_graph->subjects->{$name};
}
if($name !== '' && !property_exists($default_graph->subjects, $name)) {
$default_graph->subjects->{$name} = (object)array('@id' => $name);
}
// add subject to graph as needed