From 5070500d0b1371d702042d6726787fed19055ba1 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro <k.d.mitnick@gmail.com> Date: Sun, 18 Feb 2024 15:08:41 +0100 Subject: [PATCH] fix: show translated no category when sorting by category --- includes/list_subscriptions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/list_subscriptions.php b/includes/list_subscriptions.php index 8b12de30f..3a7aed1b1 100644 --- a/includes/list_subscriptions.php +++ b/includes/list_subscriptions.php @@ -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'];