Permalink
Browse files

Fixed "undefined" error when no trains forecast.

  • Loading branch information...
Aaron Hastings
Aaron Hastings committed Dec 25, 2014
1 parent 26517af commit 41231464b777f196650d4ecb1a28792b71222b50
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/gettimes.js
@@ -94,7 +94,7 @@ WorkerScript.onMessage = function(sentMessage) {
}
// If train times are not present in returned API message, service has probably stopped running for the day.
else {
stationInfo[0] = ["<b>No trains forecast</b>", ""];
stationInfo[0] = ["<b>No trains forecast</b>", "", "", ""];

// Populate array with empty strings.
for (var i = 1; i < 6; i++) {

0 comments on commit 4123146

Please sign in to comment.