pub / rememori

Simple file-based bookmarking and notes application
git clone src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit 13c4a51892fc2744424a30e86a466da2a0bbb0ec
parent 674dc99215abcc22314b072621d6550813b2f55c
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 20 Dec 2024 14:27:26 +0100

fix: add "all categories" label

Diffstat:
Mlib/show.php | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/show.php b/lib/show.php @@ -137,7 +137,13 @@ function show_note( } /* construct button label */ - $cat_label = $category["name"] . " (" . $category["matches"] . ")"; + if (!empty($category["name"])) { + $cat_label = $category["name"] . + " (" . $category["matches"] . ")"; + } else { + $cat_label = $GLOBALS["i18n_list"] . + " (" . $category["matches"] . ")"; + } ?> <!-- other category button -->