diff --git a/system/includes/functions.php b/system/includes/functions.php index f33b675..806273b 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -996,6 +996,7 @@ function get_related($tag, $custom = null, $count = null) } } + $tmp = array(); $exp = explode(',', $tag); $posts = get_category($exp[0], 1, $count + 1, true); @@ -1006,11 +1007,7 @@ function get_related($tag, $custom = null, $count = null) } if (empty($custom)) { - - $total = count($tmp); - - if ($total >= 1) { - + if (!empty($tmp)) { $i = 1; echo ''; - } else { echo ''; }