From 44840971e8e405cc41f923eaff0a32d7accb496c Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 12 Nov 2010 10:47:04 +0000 Subject: - Fix handling of folders with name "0" (#1487119) --- program/include/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/html.php') diff --git a/program/include/html.php b/program/include/html.php index b73c54a8c..27d1d7750 100644 --- a/program/include/html.php +++ b/program/include/html.php @@ -75,7 +75,7 @@ class html $suffix = $attrib['nl'] || ($content && $attrib['nl'] !== false && !in_array($tagname, $inline_tags)) ? "\n" : ''; $tagname = self::$lc_tags ? strtolower($tagname) : $tagname; - if ($content || in_array($tagname, self::$containers)) { + if (isset($content) || in_array($tagname, self::$containers)) { $templ = $attrib['noclose'] ? "<%s%s>%s" : "<%s%s>%s%s"; unset($attrib['noclose']); return sprintf($templ, $tagname, self::attrib_string($attrib, $allowed_attrib), $content, $tagname, $suffix); -- cgit v1.2.3