From 018a6a4d093877af68e93da50fe03f561a0d71ae Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 25 Jun 2018 14:58:57 +0200 Subject: [PATCH] Make sure there is toolbar before using it --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 2935aded4f..5393cefa4c 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -6115,7 +6115,7 @@ app.classes.mail = AppJS.extend( actions = actions.split(','); for (var i=0; i < actions.length; i++) { - if (toolbar.options.actions[actions[i]]) + if (toolbar && toolbar.options.actions[actions[i]]) { var $d = jQuery('#composeToolbar-'+actions[i]); if ($d.length > 0