diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index 8489c0b9e6..cc11ba4a36 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -39,9 +39,9 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) { function mailto(uri) { // Parse uri into a map - var match = uri.match(/^mailto:([^?]+)\??(([^=]+)([^&]+))*$/); + var match = uri.match(/^mailto:([^?]+)\??(([^=]+)([^&]+))*$/) || []; var content = { - to: match[1] + to: match[1] || [] } for(var i = 2; i < match.length; i+=2) {