mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 10:59:54 +02:00
Enhance exists() to not error due to empty $account_id
This commit is contained in:
@@ -231,6 +231,7 @@
|
||||
if (gettype($account_id) == "string") {
|
||||
$account_id = $this->name2id($account_id);
|
||||
}
|
||||
if ($account_id) {
|
||||
$sql = "SELECT account_id FROM phpgw_accounts WHERE account_id=".$account_id;
|
||||
$this->db->query($sql,__LINE__,__FILE__);
|
||||
if ($this->db->num_rows() == 1) {
|
||||
@@ -238,7 +239,7 @@
|
||||
} else {
|
||||
$insql = False;
|
||||
}
|
||||
|
||||
}
|
||||
$ds = $phpgw->common->ldapConnect();
|
||||
$sri = ldap_search($ds, $phpgw_info["server"]["ldap_context"], "uid=".$account_lid);
|
||||
$allValues = ldap_get_entries($ds, $sri);
|
||||
|
Reference in New Issue
Block a user