From 1f599abaf69043b2f7a1d04326cbdde8f6863d85 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 10 Feb 2014 09:16:18 +0000 Subject: [PATCH] fix exception for not found image / null passed --- phpgwapi/js/jsapi/egw_images.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_images.js b/phpgwapi/js/jsapi/egw_images.js index 48e0de8031..db9b4bedec 100644 --- a/phpgwapi/js/jsapi/egw_images.js +++ b/phpgwapi/js/jsapi/egw_images.js @@ -141,7 +141,7 @@ egw.extend('images', egw.MODULE_GLOBAL, function() { image_element: function(_url, _alt) { var icon; - if (_url.match(/\.svg$/)) + if (typeof _url == 'string' && _url.match(/\.svg$/)) { icon = document.createElement('object'); icon.type = 'image/svg+xml';