Skip to content

Commit

Permalink
Always pass an array avoid js warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 27, 2016
1 parent 60b4a1d commit f13daf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kronolith/lib/Ajax.php
Expand Up @@ -193,7 +193,9 @@ protected function _addBaseVars()
$js_vars['text']['recur']['exception'] = _("Exception");

// Maps
$js_vars['conf']['maps'] = $conf['maps'];
$js_vars['conf']['maps'] = !empty($conf['maps'])
? $conf['maps']
: array();

return $js_vars;
}
Expand Down

0 comments on commit f13daf2

Please sign in to comment.