From 8482b6eb46bd0d303bd5692d07e025d3166930ec Mon Sep 17 00:00:00 2001 From: fusionate Date: Tue, 16 May 2023 18:39:29 +0000 Subject: [PATCH] Footer - Updates for PHP 8.1 --- resources/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/footer.php b/resources/footer.php index 17ada29e97..cb4279d266 100644 --- a/resources/footer.php +++ b/resources/footer.php @@ -39,7 +39,7 @@ if (!isset($_SESSION["username"])) { $_SESSION["username"] = null; } //get the output from the buffer - $body = $content_from_db.ob_get_contents(); + $body = ($content_from_db ?? '').ob_get_contents(); ob_end_clean(); //clean the buffer //clear the template