mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
new classes support
This commit is contained in:
parent
7483d5a8f9
commit
2d4dedfbd5
@ -169,25 +169,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function exists($accountname)
|
function exists($account_id)
|
||||||
{
|
{
|
||||||
global $phpgw, $phpgw_info;
|
global $phpgw, $phpgw_info;
|
||||||
|
if (gettype($account_id) == "string") {
|
||||||
if (gettype($account_id) == "string")
|
$account_id = $this->name2id($account_id);
|
||||||
{
|
|
||||||
$sql = "SELECT account_id FROM phpgw_accounts WHERE account_lid='".$account_id."'";
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$sql = "SELECT account_id FROM phpgw_accounts WHERE account_id='".$account_id."'";
|
$sql = "SELECT account_id FROM phpgw_accounts WHERE account_id='".$account_id."'";
|
||||||
}
|
|
||||||
$this->db->query($sql,__LINE__,__FILE__);
|
$this->db->query($sql,__LINE__,__FILE__);
|
||||||
if ($this->db->num_rows())
|
if ($this->db->num_rows()) {
|
||||||
{
|
|
||||||
return True;
|
return True;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user