diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index 3c0f4214e4..c65bfdc866 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -891,17 +891,16 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde } foreach ($categories as $category) { $cat_name = apply_filters('list_cats', $category->cat_name); - $link = "cat_ID.'">'; - $link .= stripslashes($cat_name).""; + $link = ''; + $link .= stripslashes($cat_name).''; if (intval($optioncount) == 1) { - $link .= "  (".$category->cat_count.")"; + $link .= '  ('.$category->cat_count.')'; } if (intval($optiondates) == 1) { - $link .= "  ".$category->lastday."/".$category->lastmonth.""; + $link .= '  '.$category->lastday.'/'.$category->lastmonth; } - $link .= ""; if ($list) { - echo "\n\t
  • $link
  • "; + echo "\t
  • $link
  • \n"; } else { echo "\t$link
    \n"; }