From d28583a3a479ff38154e8461b75cdc0dee3f7aa2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 1 Apr 2014 14:16:11 +0000 Subject: [PATCH] fix Array has no method match, if egw_framework::message() is called in GET request --- phpgwapi/js/jsapi/egw.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index 72bffcbaf7..95dda7274d 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -230,7 +230,8 @@ // display a message if (egw_script.getAttribute('data-message')) { - egw(window).message(JSON.parse(egw_script.getAttribute('data-message'))); + var params = JSON.parse(egw_script.getAttribute('data-message')) || ['']; + egw(window).message.apply(egw(window), params); } // hide location bar for mobile browsers if (egw_script.getAttribute('data-mobile'))