summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-12 11:08:56 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-12 11:08:56 (GMT)
commit747f2d5a2625543b0d0f0600ef17439ef71c092e (patch)
treeab62ba14f3d32a81b2a21bd0fb32dfb0c9117c7d
parentbef20a0e8d447323843bf8184187c9e1e0ff78f5 (diff)
downloadroundcubemail-plugins-kolab-747f2d5a2625543b0d0f0600ef17439ef71c092e.tar.gz
Avoid JS errors on organizer check
-rw-r--r--plugins/calendar/calendar_ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index 57a5ce5..c1e3d55 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -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;
}