From b1871449611d369942626b63b4cf92452c77e18d Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 1 Apr 2013 16:34:43 -0400 Subject: [PATCH] Simplify graph iteration. --- jsonld.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jsonld.php b/jsonld.php index a056f22..59d9bb2 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2614,9 +2614,7 @@ class JsonLdProcessor { } // build @lists - $all_graphs = array_values((array)$graphs); - $all_graphs[] = $default_graph; - foreach($all_graphs as $graph) { + foreach($graphs as $graph_name => $graph) { // find list head $list_map = $graph->listMap; foreach($list_map as $subject => $entry) {