Browse Source

Update functions.php

pull/663/head
danpros 2 years ago
parent
commit
5eebca5574
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      system/includes/functions.php

+ 2
- 2
system/includes/functions.php View File

@ -1522,7 +1522,7 @@ EOF;
echo '</li>'; echo '</li>';
echo '</ul>'; echo '</ul>';
} }
} elseif ($custom == 'month-year') {
} elseif ($custom === 'month-year') {
foreach ($by_year as $year => $months) { foreach ($by_year as $year => $months) {
$by_month = array_count_values($months); $by_month = array_count_values($months);
# Sort the months # Sort the months
@ -1532,7 +1532,7 @@ EOF;
echo '<li class="item"><a href="' . site_url() . 'archive/' . $year . '-' . $month . '">' . $name . ' ' . $year .'</a> ('.$count.')</li>'; echo '<li class="item"><a href="' . site_url() . 'archive/' . $year . '-' . $month . '">' . $name . ' ' . $year .'</a> ('.$count.')</li>';
} }
} }
} elseif ($custom == 'year') {
} elseif ($custom === 'year') {
foreach ($by_year as $year => $months) { foreach ($by_year as $year => $months) {
$by_month = array_count_values($months); $by_month = array_count_values($months);
# Sort the months # Sort the months


Loading…
Cancel
Save