summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-08-18 18:34:56 +0000
committerthomascube <thomas@roundcube.net>2011-08-18 18:34:56 +0000
commitb6cd452bd31bfd4b6b94b23fe54b424fdf901e61 (patch)
tree7b8640c4f06ef5a564a0a25c9f6d7d58d9d9abbc /program/js/app.js
parentb1cde954d15abedbb2874f592c59155e049244ef (diff)
Backport changes from r5084 to r5090 to release branch
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 717b21cfe..d15950d36 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4432,7 +4432,7 @@ function rcube_webmail()
this.set_photo_actions = function(id)
{
var n, buttons = this.buttons['upload-photo'];
- for (n=0; n < buttons && buttons.length; n++)
+ for (n=0; buttons && n < buttons.length; n++)
$('#'+buttons[n].id).html(this.get_label(id == '-del-' ? 'addphoto' : 'replacephoto'));
$('#ff_photo').val(id);