Skip to content

Commit

Permalink
fix: show translated no category when sorting by category
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Feb 18, 2024
1 parent 03b175d commit 5070500
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion includes/list_subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ function printSubscriptions($subscriptions, $sort, $categories, $members, $i18n)
if ($sort == "category_id" && $subscription['category_id'] != $currentCategory) {
?>
<div class="subscription-list-title">
<?= $categories[$subscription['category_id']]['name'] ?>
<?php
if ($subscription['category_id'] == 1) {
echo translate('no_category', $i18n);
} else {
echo $categories[$subscription['category_id']]['name'];
}
?>
</div>
<?php
$currentCategory = $subscription['category_id'];
Expand Down

0 comments on commit 5070500

Please sign in to comment.