- Fix handling of folders with name "0" (#1487119)

This commit is contained in:
alecpl
2010-11-12 10:47:04 +00:00
parent d2b27d1175
commit 44840971e8
9 changed files with 56 additions and 60 deletions

View File

@@ -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>%s";
unset($attrib['noclose']);
return sprintf($templ, $tagname, self::attrib_string($attrib, $allowed_attrib), $content, $tagname, $suffix);