diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index ae6f7fdb23..4ff7bc3b82 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -185,14 +185,14 @@ return $accounts; } - function name2id($account_name) + function name2id($account_lid) { global $phpgw, $phpgw_info; - $this->db->query("SELECT account_id FROM phpgw_accounts WHERE account_lid='".$account_name."'",__LINE__,__FILE__); + $this->db->query("SELECT account_id FROM phpgw_accounts WHERE account_lid='".$account_lid."'",__LINE__,__FILE__); if($this->db->num_rows()) { $this->db->next_record(); - return intval($this->db->f("account_id")); + return intval($this->db->f('account_id')); } else { return False; } @@ -205,7 +205,7 @@ $this->db->query("SELECT account_lid FROM phpgw_accounts WHERE account_id='".$account_id."'",__LINE__,__FILE__); if($this->db->num_rows()) { $this->db->next_record(); - return $this->db->f("account_lid"); + return $this->db->f('account_lid'); } else { return False; } diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 4dddde8e2a..ae8484c060 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -146,14 +146,14 @@ return $accounts; } - function name2id($account_name) + function name2id($account_lid) { global $phpgw, $phpgw_info; - $this->db->query("SELECT account_id FROM phpgw_accounts WHERE account_lid='".$account_name."'",__LINE__,__FILE__); + $this->db->query("SELECT account_id FROM phpgw_accounts WHERE account_lid='".$account_lid."'",__LINE__,__FILE__); if($this->db->num_rows()) { $this->db->next_record(); - return $this->db->f("account_id"); + return $this->db->f('account_id'); }else{ return False; } @@ -162,11 +162,11 @@ function id2name($account_id) { global $phpgw, $phpgw_info; - + $this->db->query("SELECT account_lid FROM phpgw_accounts WHERE account_id='".$account_id."'",__LINE__,__FILE__); if($this->db->num_rows()) { $this->db->next_record(); - return $this->db->f("account_lid"); + return $this->db->f('account_lid'); }else{ return False; }