]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow 0 or blank string in inputs
authorEvan Prodromou <evan@status.net>
Mon, 26 Apr 2010 06:36:46 +0000 (02:36 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 26 Apr 2010 06:36:46 +0000 (02:36 -0400)
lib/htmloutputter.php

index 7786b5941e25ba770d3f11c029f360af5b322f50..9d06ba23c9bff7efea32ad37878af0c9ccbad46d 100644 (file)
@@ -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);