mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
minor touches for cosmetics
This commit is contained in:
parent
020e076771
commit
f22e071fbd
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user