Code standards
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 @@
     }
 
 </script> 
+

file:a/stop.php -> file:b/stop.php
--- a/stop.php
+++ b/stop.php
@@ -141,7 +141,7 @@
 if (sizeof($trips) == 0) {
     echo "<li style='text-align: center;'>No trips in the near future.</li>";
 } else {
-            if ($labs) {
+            if (isset($labs)) {
 // ETA calculation
                 
                 $tripETA = Array();
@@ -176,7 +176,7 @@
             $destination = getTripDestination($trip['trip_id']);
             echo '<a href="trip.php?stopid=' . $stopid . '&amp;tripid=' . $trip['trip_id'] . '"><h3>' . $trip['route_short_name'] . " towards " . $destination['stop_name'] . "</h3><p>";
             $viaPoints = viaPointNames($trip['trip_id'], $trip['stop_sequence']);
-if ($labs) {
+if (isset($labs)) {
                 echo '<br><span class="eta">ETA: ' . $tripETA[$trip['trip_id']] . '</span>';
             }
             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();
     }