Avoid JS errors on organizer check
This commit is contained in:
parent
bef20a0e8d
commit
747f2d5a26
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue