change api.php in function api_item_get_user to check if $usercache is NULL before checking an element in it
This commit is contained in:
parent
a3a55897e5
commit
a844093365
|
@ -380,7 +380,7 @@
|
|||
$nick = $name;
|
||||
|
||||
// Generating a random ID
|
||||
if (!array_key_exists($nick, $usercache))
|
||||
if (is_null($usercache[$nick]) or !array_key_exists($nick, $usercache))
|
||||
$usercache[$nick] = mt_rand(2000000, 2100000);
|
||||
|
||||
$ret = array(
|
||||
|
|
Loading…
Reference in New Issue
Block a user