Skip to content

Commit

Permalink
Update Kernel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu authored May 24, 2019
1 parent b61d6a6 commit eb7beb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pho/Kernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ public function reindex(bool $flush = true): void
$indexed_edges = [];

for($i=0; $i<$node_count; $i++) {
$this->index()->index($nodes[$i]);
$this->index()->index($nodes[$i]->toArray());
$edges = $nodes[$i]->edges()->out();
foreach($edges as $edge) {
if(!in_array($edge->id()->toString(), $indexed_edges)) {
$indexed_edges[] = $edge->id()->toString();
$this->index()->index($edge);
$this->index()->index($edge->toArray());
}
}
}
Expand Down

0 comments on commit eb7beb9

Please sign in to comment.