fix compatibility with php8

This commit is contained in:
xiaomlove
2020-12-29 03:02:34 +08:00
parent 32d47b66c9
commit fe7489ef51
33 changed files with 249 additions and 212 deletions

View File

@@ -11,7 +11,7 @@ function bark($msg)
exit;
}
$id = 0 + $_GET['id'];
$id = $_GET['id'] ?? 0;
int_check($id,true);
if (get_user_class() >= UC_MODERATOR || $CURUSER[id] == "$id")