From fb02d4a7478a11f0ec2c87f8bf0073086dafe4a5 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 1 Oct 2017 17:52:16 +0200 Subject: [PATCH] Fix error when calling show_popup_dialog() with no 4th argument --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/js/app.js b/program/js/app.js index e4ed0d218..9bcd56e64 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -7776,7 +7776,7 @@ function rcube_webmail() return button; }; - if (options.button_classes) + if (options && options.button_classes) $.each(buttons, function(idx, button) { var cl = options.button_classes[i]; if (cl)