From: Alexander Ebert Date: Thu, 9 Jul 2015 15:58:36 +0000 (+0200) Subject: `AjaxRequest` failed if response was empty X-Git-Tag: 3.0.0_Beta_1~2202 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e97a69ce70bb9c1596ecb1a1af9953c46fa3cf5;p=GitHub%2FWoltLab%2FWCF.git `AjaxRequest` failed if response was empty --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ajax/Request.js b/wcfsetup/install/files/js/WoltLab/WCF/Ajax/Request.js index 081863e232..c0c73e86f7 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ajax/Request.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ajax/Request.js @@ -212,7 +212,7 @@ define(['Core', 'Language', 'DOM/ChangeListener', 'DOM/Util', 'UI/Dialog', 'Wolt } // 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 = data.returnValues.template.trim(); } }