From 26b402509262b6793acb3703e9f908b3b2ae31fd Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 18 Feb 2001 23:26:53 +0000 Subject: [PATCH] guarantees returned id is int value --- phpgwapi/inc/class.accounts_ldap.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 6eed76c97f..f9fec9aa76 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -154,8 +154,7 @@ $this->db->query("SELECT account_id FROM phpgw_accounts WHERE account_lid='".$account_name."'",__LINE__,__FILE__); if($this->db->num_rows()) { $this->db->next_record(); - - return $this->db->f("account_id"); + return intval($this->db->f("account_id")); }else{ return False; }