commit bafad98fefddb078def658831b2c2df7ca383e4e parent a6ecc1ae9c7c3063ac66edcdb0cf4fe209439c9b Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sun, 27 Oct 2024 14:40:49 +0100 fix: only print "similar notes" button if a category is known Diffstat:
M | lib/show.php | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/show.php b/lib/show.php @@ -72,6 +72,13 @@ function show_note( > </form> +<?php + + /* check whether any category is given and print a button for it */ + if (!empty($category)) { + +?> + <!-- related notes --> <div class="related"> @@ -102,6 +109,8 @@ function show_note( <?php + } // if-statement + } // function ?>