Skip to content

Commit

Permalink
Fix missing array warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Apr 12, 2014
1 parent d24a7ae commit 0bb2914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/bus.php
Expand Up @@ -53,6 +53,9 @@ function time_sort($a, $b) {
$prior = null;
foreach ($predictions as $p) {
$n = $p[$col_StopID];
if (!array_key_exists($n, $route_prior)) {
$route_prior[$n] = array();
}
if ($prior && !in_array($prior, $route_prior[$n])) {
$route_prior[$n][] = $prior;
}
Expand Down

0 comments on commit 0bb2914

Please sign in to comment.