]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/htmloutputter.php
Merge remote branch 'statusnet/0.9.x' into 1.0.x
[quix0rs-gnu-social.git] / lib / htmloutputter.php
index 42bff44908b797cb78bdf78315a28ebdfd315de1..d079fac06947228811bbe2133264bd20ec1567cd 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);