From 5eebca5574e72bd7ac8499e7f3a15cd8db4d7be3 Mon Sep 17 00:00:00 2001 From: danpros Date: Sun, 17 Dec 2023 14:08:34 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index c0ff7f4..50e0f44 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1522,7 +1522,7 @@ EOF; echo ''; echo ''; } - } elseif ($custom == 'month-year') { + } elseif ($custom === 'month-year') { foreach ($by_year as $year => $months) { $by_month = array_count_values($months); # Sort the months @@ -1532,7 +1532,7 @@ EOF; echo '
  • ' . $name . ' ' . $year .' ('.$count.')
  • '; } } - } elseif ($custom == 'year') { + } elseif ($custom === 'year') { foreach ($by_year as $year => $months) { $by_month = array_count_values($months); # Sort the months