Make random uidnumber not create invalid uid ( <65536 )

This commit is contained in:
Miles Lott 2001-03-10 14:59:28 +00:00
parent 7f98c8abff
commit d3e54884f1

View File

@ -232,7 +232,7 @@
{
global $phpgw_info, $phpgw;
if (!$account_id) { $account_id = mt_rand (100, 600000); }
if (!$account_id) { $account_id = mt_rand (100, 65535); }
// auto_increment/serial in the db won't necessarily work for ldap, nor would
// randomization. Need to check for lastid in ldap, then create newid for sql and ldap