Skip to content
Browse files

Remove unnecessary lines.

  • Loading branch information...
1 parent 080dec5 commit 657edcec471ed04c3fe841481fd2b074f669cc7d @dlongley dlongley committed May 2, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 jsonld.php
View
10 jsonld.php
@@ -1452,14 +1452,8 @@ protected function _fromRDF($statements, $options) {
}
// 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

0 comments on commit 657edce

Please sign in to comment.
Something went wrong with that request. Please try again.