Avoid JS errors on organizer check

This commit is contained in:
Thomas Bruederli 2015-02-12 12:08:56 +01:00
parent bef20a0e8d
commit 747f2d5a26

View file

@ -784,7 +784,7 @@ function rcube_calendar_ui(settings)
// select the correct organizer identity
var identity_id = 0;
$.each(settings.identities, function(i,v){
if (organizer && v == organizer.email) {
if (organizer && typeof organizer == 'object' && v == organizer.email) {
identity_id = i;
return false;
}