From 18f7b1e05fa9106b69cfacfa352147050d64e5dd Mon Sep 17 00:00:00 2001 From: shrykedude Date: Sat, 11 Oct 2003 00:02:23 +0000 Subject: [PATCH] pgsql fix for empty var --- phpgwapi/inc/class.contacts_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.contacts_sql.inc.php b/phpgwapi/inc/class.contacts_sql.inc.php index 78b6928b2e..8e38fc8ce8 100644 --- a/phpgwapi/inc/class.contacts_sql.inc.php +++ b/phpgwapi/inc/class.contacts_sql.inc.php @@ -245,7 +245,7 @@ $id = $this->db->f(0); - $this->db->query("SELECT id,lid,tid,owner,access,cat_id $t_fields FROM $this->std_table WHERE id='$id'",__LINE__,__FILE__); + $this->db->query("SELECT id,lid,tid,owner,access,cat_id $t_fields FROM $this->std_table WHERE id='" . intval($id) . "'",__LINE__,__FILE__); $this->db->next_record(); $return_fields[0]['id'] = $this->db->f('id');