fix php8 compatibility

This commit is contained in:
xiaomlove
2020-12-28 20:52:54 +08:00
parent 77ebc7caa4
commit 32d47b66c9
29 changed files with 357 additions and 302 deletions

View File

@@ -253,7 +253,7 @@ if (!$topicsperpage){
$today_date = date("Y-m-d",TIMENOW);
// ------------- end: Global variables ------------------//
$action = htmlspecialchars(trim($_GET["action"]));
$action = htmlspecialchars(trim($_GET["action"] ?? ''));
//-------- Action: New topic
if ($action == "newtopic")
@@ -1408,7 +1408,7 @@ stdfoot();
die;
}
if ($_GET["catchup"] == 1){
if (isset($_GET["catchup"]) && $_GET["catchup"] == 1){
catch_up();
}