Merge pull request #279 from fermionic/generate-random-id-bug-in-statusnet-api
Bug in StatusNet API
This commit is contained in:
commit
25afec0f81
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue