Fix hide_empty for list_cats()

git-svn-id: http://svn.automattic.com/wordpress/trunk@795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-01-26 01:59:09 +00:00
parent 5af414bdec
commit 07731fae29
1 changed files with 6 additions and 4 deletions

View File

@ -1543,10 +1543,12 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
if (intval($optiondates) == 1) { if (intval($optiondates) == 1) {
$link .= ' '.$category->lastday.'/'.$category->lastmonth; $link .= ' '.$category->lastday.'/'.$category->lastmonth;
} }
if ($list) { if (!$hide_empty || $category_posts[$category->cat_ID]) {
echo "\t<li>$link</li>\n"; if ($list) {
} else { echo "\t<li>$link</li>\n";
echo "\t$link<br />\n"; } else {
echo "\t$link<br />\n";
}
} }
} }
} }