mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-06-11 21:37:31 +08:00
fix php8 compatibility
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user