From 9348a502eb3b6dc6eb4dae82382c5ed3fdf09e2e Mon Sep 17 00:00:00 2001 From: danpros Date: Thu, 10 Feb 2022 14:30:28 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 ''; }