minor touches for cosmetics

This commit is contained in:
skeeter 2001-03-24 02:33:44 +00:00
parent 020e076771
commit f22e071fbd
2 changed files with 9 additions and 9 deletions

View File

@ -185,14 +185,14 @@
return $accounts; return $accounts;
} }
function name2id($account_name) function name2id($account_lid)
{ {
global $phpgw, $phpgw_info; 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()) { if($this->db->num_rows()) {
$this->db->next_record(); $this->db->next_record();
return intval($this->db->f("account_id")); return intval($this->db->f('account_id'));
} else { } else {
return False; return False;
} }
@ -205,7 +205,7 @@
$this->db->query("SELECT account_lid FROM phpgw_accounts WHERE account_id='".$account_id."'",__LINE__,__FILE__); $this->db->query("SELECT account_lid FROM phpgw_accounts WHERE account_id='".$account_id."'",__LINE__,__FILE__);
if($this->db->num_rows()) { if($this->db->num_rows()) {
$this->db->next_record(); $this->db->next_record();
return $this->db->f("account_lid"); return $this->db->f('account_lid');
} else { } else {
return False; return False;
} }

View File

@ -146,14 +146,14 @@
return $accounts; return $accounts;
} }
function name2id($account_name) function name2id($account_lid)
{ {
global $phpgw, $phpgw_info; 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()) { if($this->db->num_rows()) {
$this->db->next_record(); $this->db->next_record();
return $this->db->f("account_id"); return $this->db->f('account_id');
}else{ }else{
return False; return False;
} }
@ -166,7 +166,7 @@
$this->db->query("SELECT account_lid FROM phpgw_accounts WHERE account_id='".$account_id."'",__LINE__,__FILE__); $this->db->query("SELECT account_lid FROM phpgw_accounts WHERE account_id='".$account_id."'",__LINE__,__FILE__);
if($this->db->num_rows()) { if($this->db->num_rows()) {
$this->db->next_record(); $this->db->next_record();
return $this->db->f("account_lid"); return $this->db->f('account_lid');
}else{ }else{
return False; return False;
} }