浏览代码

Footer - Updates for PHP 8.1

fusionate 2 年之前
父节点
当前提交
9680a1a0f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/footer.php

+ 1 - 1
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