Simplify graph iteration.

This commit is contained in:
Dave Longley 2013-04-01 16:34:43 -04:00
parent 830afdd9e6
commit b187144961

View file

@ -2614,9 +2614,7 @@ class JsonLdProcessor {
} }
// build @lists // build @lists
$all_graphs = array_values((array)$graphs); foreach($graphs as $graph_name => $graph) {
$all_graphs[] = $default_graph;
foreach($all_graphs as $graph) {
// find list head // find list head
$list_map = $graph->listMap; $list_map = $graph->listMap;
foreach($list_map as $subject => $entry) { foreach($list_map as $subject => $entry) {