From b9ae87c0af0d89d70dee019ef308aaa0f8dd5757 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 19 Sep 2023 18:39:07 +0200 Subject: [PATCH] avoid some error log spamming --- macros/toc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/toc b/macros/toc index 5f89936..ed046e7 100755 --- a/macros/toc +++ b/macros/toc @@ -16,7 +16,7 @@ . "$_EXEC/cgilite/cgilite.sh" -min="$1" max="$2" +min="${1:-1}" max="${2:-6}" [ "$min" -ge 1 -a "$min" -le 6 ] || min=1 [ "$max" -ge "$min" ] || max="$min" [ "$max" -le 6 ] || max=6 -- 2.39.2