mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix common undefined constant error
This commit is contained in:
@@ -14,7 +14,7 @@ function bark($msg)
|
||||
$id = intval($_GET['id'] ?? 0);
|
||||
int_check($id,true);
|
||||
|
||||
if (get_user_class() >= UC_MODERATOR || $CURUSER[id] == "$id")
|
||||
if (get_user_class() >= UC_MODERATOR || $CURUSER['id'] == "$id")
|
||||
{
|
||||
$deadtime = deadtime();
|
||||
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime) AND userid=" . sqlesc($id));
|
||||
|
||||
Reference in New Issue
Block a user