fix Array has no method match, if egw_framework::message() is called in GET request

This commit is contained in:
Ralf Becker 2014-04-01 14:16:11 +00:00
parent e30adcba12
commit d28583a3a4

View File

@ -230,7 +230,8 @@
// display a message // display a message
if (egw_script.getAttribute('data-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 // hide location bar for mobile browsers
if (egw_script.getAttribute('data-mobile')) if (egw_script.getAttribute('data-mobile'))