diff --git a/calendar@simonwiles.net/applet.js b/calendar@simonwiles.net/applet.js index 775ce29..1ee6291 100644 --- a/calendar@simonwiles.net/applet.js +++ b/calendar@simonwiles.net/applet.js @@ -104,7 +104,11 @@ MyApplet.prototype = { this._worldclocks = []; this._worldclock_labels = []; var i; - for (i in this.worldclocks) { this._worldclocks[i] = this.worldclocks[i].split("|"); } + for (i in this.worldclocks) { + if (typeof(this.worldclocks[i]) == 'string') { + this._worldclocks[i] = this.worldclocks[i].split("|"); + } + } for (i in this._worldclocks) { this._worldclocks[i][1] = GLib.TimeZone.new(this._worldclocks[i][1]);