diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-04-30 20:51:22 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-04-30 20:51:22 -0600 |
commit | a84409336532e4b3776b6a747aa845bd74615d11 (patch) | |
tree | cb97d078d2b0a2646d1fab905e2616e07000fb3d /include/api.php | |
parent | a3a55897e5c8dc834d72cf66d705599ed990fa87 (diff) | |
download | volse-hubzilla-a84409336532e4b3776b6a747aa845bd74615d11.tar.gz volse-hubzilla-a84409336532e4b3776b6a747aa845bd74615d11.tar.bz2 volse-hubzilla-a84409336532e4b3776b6a747aa845bd74615d11.zip |
change api.php in function api_item_get_user to check if $usercache is NULL before checking an element in it
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php index f9be68c3d..a693a32c8 100644 --- a/include/api.php +++ b/include/api.php @@ -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( |