From b2949cd027334ac2e06e6c7eee5e32bb358754e5 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 25 Apr 2023 18:32:14 +0800 Subject: [PATCH] * zin: fix number 0 not render as expected --- zin/core/dom.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zin/core/dom.class.php b/zin/core/dom.class.php index fc474ff3c0..4d13506cab 100644 --- a/zin/core/dom.class.php +++ b/zin/core/dom.class.php @@ -71,7 +71,7 @@ class dom foreach($children as $child) { if(is_array($child)) $this->add($child); - elseif(!empty($child)) $this->children[] = $child; + else $this->children[] = $child; } }