mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
guarantees returned id is int value
This commit is contained in:
parent
6db8b326d2
commit
26b4025092
@ -154,8 +154,7 @@
|
|||||||
$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_name."'",__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 $this->db->f("account_id");
|
|
||||||
}else{
|
}else{
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user