]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/htmloutputter.php
Merge in Phergie changes
[quix0rs-gnu-social.git] / lib / htmloutputter.php
index 5dc2b38dab44caedcf24fe981ff9db3877ec2e88..7eccd6cc0e56cddd9ed745fc20cd2e35b17bf733 100644 (file)
@@ -177,7 +177,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);