From: Evan Prodromou Date: Mon, 26 Apr 2010 06:36:46 +0000 (-0400) Subject: allow 0 or blank string in inputs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=767ff2f7ecfd7e76e8418fc79d45e61898f09382;p=quix0rs-gnu-social.git allow 0 or blank string in inputs --- diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 7786b5941e..9d06ba23c9 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -176,7 +176,7 @@ class HTMLOutputter extends XMLOutputter $attrs = array('name' => $id, 'type' => 'text', 'id' => $id); - if ($value) { + if (!is_null($value)) { // value can be 0 or '' $attrs['value'] = $value; } $this->element('input', $attrs);