From: awjrichards Date: Fri, 20 Apr 2012 23:18:50 +0000 (-0700) Subject: Better fix for bug 36049, now using isset() rather than !empty() X-Git-Tag: 1.31.0-rc.0~23860 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=fb01ab5dcfc80216f0540f2464c6f7c6c1d51fac;p=lhc%2Fweb%2Fwiklou.git Better fix for bug 36049, now using isset() rather than !empty() for textarea placeholder attribute in case the attribute value is '0'. Change-Id: I139abff427d7342fc3283ed3428d0a538331d2b5 --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index ec1507cf98..505a26f4fd 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1306,7 +1306,7 @@ class HTMLTextAreaField extends HTMLFormField { $attribs['readonly'] = 'readonly'; } - if ( !empty( $this->mParams['placeholder'] ) ) { + if ( isset( $this->mParams['placeholder'] ) ) { $attribs['placeholder'] = $this->mParams['placeholder']; }