diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-14 11:19:11 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-14 11:19:11 +0400 |
commit | f576f692fdc0f6cb5f1b5aa4b83529afad8f182a (patch) | |
tree | 837dcdbc23336dc1f6758d3b6caf4b5020669879 /plugins/CoreHome/javascripts | |
parent | 3c8c22e8958a95de01469358b5c7429a111f3f14 (diff) |
Fix regression JS error on login form
Diffstat (limited to 'plugins/CoreHome/javascripts')
-rw-r--r-- | plugins/CoreHome/javascripts/calendar.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/calendar.js b/plugins/CoreHome/javascripts/calendar.js index 0297a93241..d380577f2b 100644 --- a/plugins/CoreHome/javascripts/calendar.js +++ b/plugins/CoreHome/javascripts/calendar.js @@ -29,6 +29,10 @@ currentWeek = currentDate.getWeek(); } + if(!piwik.currentDateString) { + // eg. Login form + return; + } setCurrentDate(piwik.currentDateString); var todayDate = new Date; |