fixes to the exists function. This will now accept either an account_lid or an account_id. The preferred method is the account_lid.

This commit is contained in:
skeeter 2001-03-18 14:08:39 +00:00
parent c9b57e3e5b
commit dd2ff0d4b4

View File

@ -229,7 +229,14 @@
{
global $phpgw, $phpgw_info;
$this->db->query("SELECT count(*) FROM phpgw_accounts WHERE account_lid=".$account_lid,__LINE__,__FILE__);
if(gettype($account_lid) == 'integer')
{
$account_id = $account_lid;
settype($acount_lid,'string');
$account_lid = $this->id2name($account_id);
}
$this->db->query("SELECT count(*) FROM phpgw_accounts WHERE account_lid='".$account_lid."'",__LINE__,__FILE__);
$this->db->next_record();
if ($this->db->f(0))
{