Added error checking for name2id() and id2name(), return False when the account_id or account_lid is missing

This commit is contained in:
jengo 2001-10-06 03:37:58 +00:00
parent f25585896f
commit ae36eeb708

View File

@ -156,6 +156,11 @@
{
static $name_list;
if (! $account_lid)
{
return False;
}
if($name_list[$account_lid] && $name_list[$account_lid] != '')
{
return $name_list[$account_lid];
@ -178,6 +183,11 @@
{
static $id_list;
if (! $account_id)
{
return False;
}
if($id_list[$account_id])
{
return $id_list[$account_id];