aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-04-30 20:51:22 -0600
committerZach Prezkuta <fermion@gmx.com>2012-04-30 20:51:22 -0600
commita84409336532e4b3776b6a747aa845bd74615d11 (patch)
treecb97d078d2b0a2646d1fab905e2616e07000fb3d /include
parenta3a55897e5c8dc834d72cf66d705599ed990fa87 (diff)
downloadvolse-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')
-rw-r--r--include/api.php2
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(