From: Alexander Ebert Date: Mon, 5 Aug 2013 11:09:45 +0000 (+0200) Subject: Fixed check for empty message in quick reply X-Git-Tag: 2.0.0_Beta_7~62^2^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3b8304b6182c36ce21df1a09e57c247e6c14cb4;p=GitHub%2FWoltLab%2FWCF.git Fixed check for empty message in quick reply PHP considers '0' to be empty. --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index fc98f5eec9..ab144f6787 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -767,7 +767,7 @@ WCF.Message.QuickReply = Class.extend({ // check if message is empty var $innerError = this._messageField.parent().find('small.innerError'); - if ($message === '') { + if ($message === '' || $message === '0') { if (!$innerError.length) { $innerError = $('').appendTo(this._messageField.parent()); }