From: Maxious Date: Sat, 31 Mar 2012 08:18:43 +0000 Subject: Code standards X-Git-Url: http://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=bb905fe0ff7fb4d887b8f5f836ad4f37bcc52a65 --- Code standards --- --- a/myway/myway_timeliness.php +++ b/myway/myway_timeliness.php @@ -89,8 +89,8 @@ }, yaxis: { tickFormatter: yformatter, - min: -60*8, - max: 60*8 + min: -60*10, + max: 60*10 }, mouse: { track: true, relative: true, trackFormatter: showTooltip} }); @@ -112,3 +112,4 @@ } + --- a/stop.php +++ b/stop.php @@ -141,7 +141,7 @@ if (sizeof($trips) == 0) { echo "
  • No trips in the near future.
  • "; } else { - if ($labs) { + if (isset($labs)) { // ETA calculation $tripETA = Array(); @@ -176,7 +176,7 @@ $destination = getTripDestination($trip['trip_id']); echo '

    ' . $trip['route_short_name'] . " towards " . $destination['stop_name'] . "

    "; $viaPoints = viaPointNames($trip['trip_id'], $trip['stop_sequence']); -if ($labs) { +if (isset($labs)) { echo '
    ETA: ' . $tripETA[$trip['trip_id']] . ''; } if ($viaPoints != "") --- a/stopList.php +++ b/stopList.php @@ -81,7 +81,7 @@ trackEvent("Stop Lists", "Stops By Suburb", $suburb); } else { $listType = 'allstops=yes'; - $stops = getStops($firstLetter); + $stops = getStops((isset($firstLetter)? $firstLetter : "")); include_header("Stops by Name", "stopList"); navbar(); }