From: Alexander Ebert Date: Sat, 20 Jul 2013 23:36:57 +0000 (+0200) Subject: Fixed WCF.Action.Proxy failing if server response is empty X-Git-Tag: 2.0.0_Beta_5~25^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=82b3f032abec3276f93e8f70bab15fabc032427f;p=GitHub%2FWoltLab%2FWCF.git Fixed WCF.Action.Proxy failing if server response is empty --- 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); }