]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/htmloutputter.php
Give users more control over URL shortening
[quix0rs-gnu-social.git] / 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);