mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix compatibility with php8
This commit is contained in:
@@ -6,9 +6,9 @@ loggedinorreturn();
|
||||
if (get_user_class() < $updateextinfo_class) {
|
||||
permissiondenied();
|
||||
}
|
||||
$id = 0 + $_GET["id"];
|
||||
$type = 0 + $_GET["type"];
|
||||
$siteid = 0 + $_GET["siteid"]; // 1 for IMDb
|
||||
$id = $_GET["id"] ?? 0;
|
||||
$type = $_GET["type"] ?? 0;
|
||||
$siteid = $_GET["siteid"] ?? 0; // 1 for IMDb
|
||||
|
||||
if (!isset($id) || !$id || !is_numeric($id) || !isset($type) || !$type || !is_numeric($type) || !isset($siteid) || !$siteid || !is_numeric($siteid))
|
||||
die();
|
||||
|
||||
Reference in New Issue
Block a user