From badc5718f9bcc1b97dee21afff72199965a19f2c Mon Sep 17 00:00:00 2001 From: Stephen Bacon <38105759+farmerstevieb@users.noreply.github.com> Date: Sat, 11 Nov 2023 09:46:19 +0000 Subject: [PATCH] Update site.php adding ?? '' so that it does not error for passing null to the html_entity_decode() function --- src/routes/site.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/site.php b/src/routes/site.php index a1d1ebb..218cb5b 100644 --- a/src/routes/site.php +++ b/src/routes/site.php @@ -27,7 +27,7 @@ $themes = (new Theme())->getThemes(); if (!empty($site->custom)) { - $site->custom = html_entity_decode($site->custom); + $site->custom = html_entity_decode($site->custom ?? ''); } if ($action == "form") { @@ -74,4 +74,4 @@ return (object)["httpCode" => 200, "message" => ""]; break; } -}); \ No newline at end of file +});