Avoid warnings if libcalendaring env variables are not set (#2356)
This commit is contained in:
parent
16fc7aef10
commit
dae0af24cd
1 changed files with 5 additions and 1 deletions
|
@ -23,12 +23,16 @@
|
|||
function rcube_libcalendaring(settings)
|
||||
{
|
||||
// member vars
|
||||
this.settings = settings;
|
||||
this.settings = settings || {};
|
||||
this.alarm_ids = [];
|
||||
this.alarm_dialog = null;
|
||||
this.snooze_popup = null;
|
||||
this.dismiss_link = null;
|
||||
|
||||
// abort if env isn't set
|
||||
if (!settings || !settings.date_format)
|
||||
return;
|
||||
|
||||
// private vars
|
||||
var me = this;
|
||||
var gmt_offset = (new Date().getTimezoneOffset() / -60) - (settings.timezone || 0) - (settings.dst || 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue