]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix content check so it shows zeros
authorEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 16:36:18 +0000 (12:36 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 16:36:18 +0000 (12:36 -0400)
darcs-hash:20080722163618-84dde-5a519a92a84bb94de225fbb3da61af51cfdfdef4.gz

lib/util.php

index 36ccfe29a72053efa2d29b841c4508ca18ad584c..1d3d26da4406eaa2cc973f89c7202a7c4ccb2154 100644 (file)
@@ -108,7 +108,7 @@ function common_element_end($tag) {
 function common_element($tag, $attrs=NULL, $content=NULL) {
        common_element_start($tag, $attrs);
        global $xw;
-       if ($content) {
+       if (!is_null($content)) {
                $xw->text($content);
        }
        common_element_end($tag);