mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
should solve problems for the accounts->exists()
This commit is contained in:
parent
ec649569a4
commit
e52c72c4eb
@ -181,11 +181,15 @@
|
||||
|
||||
function exists($account_lid)
|
||||
{
|
||||
$this->db->query("SELECT count(*) FROM phpgw_accounts WHERE account_lid='" . $account_lid
|
||||
. "'",__LINE__,__FILE__);
|
||||
$this->db->next_record();
|
||||
if(gettype($account_lid) == 'integer')
|
||||
{
|
||||
$account_id = $account_lid;
|
||||
settype($acount_lid,'string');
|
||||
$account_lid = $this->id2name($account_id);
|
||||
}
|
||||
|
||||
return $this->db->f(0);
|
||||
$this->db->query("SELECT count(*) FROM phpgw_accounts WHERE account_lid='".$account_lid."'",__LINE__,__FILE__);
|
||||
return $this->db->num_rows() > 0;
|
||||
}
|
||||
|
||||
function create($account_type, $account_lid, $account_pwd, $account_firstname, $account_lastname, $account_status)
|
||||
|
Loading…
Reference in New Issue
Block a user