1
1
Fork 0

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:
Zach Prezkuta 2012-04-30 20:51:22 -06:00
parent a3a55897e5
commit a844093365

View file

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