From 4885a60c5cf56cf7cd9f871c014b1148e8b78fe6 Mon Sep 17 00:00:00 2001 From: Sonja Broda Date: Fri, 10 Dec 2021 12:45:40 +0100 Subject: [PATCH] Fix passing null to urldecode in notes controller --- site/controllers/notes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/controllers/notes.php b/site/controllers/notes.php index 2063568..0180e91 100644 --- a/site/controllers/notes.php +++ b/site/controllers/notes.php @@ -11,7 +11,7 @@ */ return function ($page) { - $tag = urldecode(param('tag')); + $tag = urldecode(param('tag') ?? ''); /** * We use the collection helper to fetch the notes collection defined in `/site/collections/notes.php` *