aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-30 20:45:10 -0700
committerfriendica <info@friendica.com>2012-04-30 20:45:10 -0700
commit25afec0f81961665717e159aba216d1e9d9f9d86 (patch)
treecb97d078d2b0a2646d1fab905e2616e07000fb3d
parenta3a55897e5c8dc834d72cf66d705599ed990fa87 (diff)
parenta84409336532e4b3776b6a747aa845bd74615d11 (diff)
downloadvolse-hubzilla-25afec0f81961665717e159aba216d1e9d9f9d86.tar.gz
volse-hubzilla-25afec0f81961665717e159aba216d1e9d9f9d86.tar.bz2
volse-hubzilla-25afec0f81961665717e159aba216d1e9d9f9d86.zip
Merge pull request #279 from fermionic/generate-random-id-bug-in-statusnet-api
Bug in StatusNet API
-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(