Skip to content

Commit

Permalink
in_array() checks need to be strict.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Feb 18, 2014
1 parent c9b4cd5 commit 322a936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gliph/Algorithm/ConnectedComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function tarjan_scc(DirectedGraph $graph, TarjanSCCVisitor $visito
$visit($to);
$lowlimits[$vertex] = min($lowlimits[$vertex], $lowlimits[$to]);
}
else if (in_array($to, $stack)) {
else if (in_array($to, $stack, TRUE)) {
$lowlimits[$vertex] = min($lowlimits[$vertex], $indices[$to]);
}
});
Expand Down

0 comments on commit 322a936

Please sign in to comment.