From 82b3f032abec3276f93e8f70bab15fabc032427f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 21 Jul 2013 01:36:57 +0200 Subject: [PATCH] Fixed WCF.Action.Proxy failing if server response is empty --- wcfsetup/install/files/js/WCF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 124d66d3c7..85727ca6c9 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1952,7 +1952,7 @@ WCF.Action.Proxy = Class.extend({ // call child method if applicable if ($.isFunction(this.options.success)) { // trim HTML before processing, see http://jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring - if (data.returnValues && data.returnValues.template !== undefined) { + if (data && data.returnValues && data.returnValues.template !== undefined) { data.returnValues.template = $.trim(data.returnValues.template); } -- 2.20.1