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