change api.php in function api_item_get_user to check if $usercache is NULL before checking an element in it

2022.09-rc
Zach Prezkuta 2012-04-30 20:51:22 -06:00
rodzic a3a55897e5
commit a844093365
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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(