summaryrefslogtreecommitdiff
path: root/lib/htmloutputter.php
diff options
context:
space:
mode:
authorIan Denhardt <ian@zenhack.net>2010-08-09 15:06:26 -0400
committerIan Denhardt <ian@zenhack.net>2010-08-09 15:06:26 -0400
commite0da39380024c3d4e7eb9a3ae0c5808ca7dcfb74 (patch)
tree6d1e4f88990203797a405fe673143d660f49cb90 /lib/htmloutputter.php
parentd933ee7bad47aeb3267dd9c23633d3943478cfe1 (diff)
parentedb62db613478d50def223ec1d60ef5863fa3a4b (diff)
Merge branch '1.0.x' of git://gitorious.org/statusnet/mainline
Diffstat (limited to 'lib/htmloutputter.php')
-rw-r--r--lib/htmloutputter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php
index 5dc2b38da..7eccd6cc0 100644
--- a/lib/htmloutputter.php
+++ b/lib/htmloutputter.php
@@ -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);