From fb01ab5dcfc80216f0540f2464c6f7c6c1d51fac Mon Sep 17 00:00:00 2001 From: awjrichards Date: Fri, 20 Apr 2012 16:18:50 -0700 Subject: [PATCH] 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 --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } -- 2.20.1