mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
stronger type casting
This commit is contained in:
parent
fdd6c6e954
commit
130a36248a
@ -282,7 +282,7 @@
|
||||
@reset($users);
|
||||
while ($user = each($users))
|
||||
{
|
||||
if($user[0] != $owner && $phpgw->accounts->exists($user[0]) == True)
|
||||
if($user[0] != $owner && $phpgw->accounts->exists(intval($user[0])) == True)
|
||||
{
|
||||
$str .= ' <option value="' . $user[0] . '"'.$parts[$user[0]].'>('.$phpgw->accounts->get_type($user[0]).') '.$user[1].'</option>'."\n";
|
||||
}
|
||||
|
@ -219,9 +219,9 @@
|
||||
if (gettype($account_id) == "string") {
|
||||
$account_id = $this->name2id($account_id);
|
||||
}
|
||||
$sql = "SELECT account_id FROM phpgw_accounts WHERE account_id='".$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()) {
|
||||
if ($this->db->num_rows() == 1) {
|
||||
return True;
|
||||
} else {
|
||||
return False;
|
||||
|
Loading…
Reference in New Issue
Block a user