From a9fd21325dfa21d2e52d030acc460bd110d7f95e Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 16 Apr 2010 10:35:09 +0000 Subject: [PATCH] fixing a bug, when trying to sanitize possible ambiguous columns --- etemplate/inc/class.so_sql_cf.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql_cf.inc.php b/etemplate/inc/class.so_sql_cf.inc.php index efabb06821..8946b297c8 100644 --- a/etemplate/inc/class.so_sql_cf.inc.php +++ b/etemplate/inc/class.so_sql_cf.inc.php @@ -449,7 +449,7 @@ class so_sql_cf extends so_sql foreach($criteria as $name => $val) { $extra_columns = $this->db->get_table_definitions($app, $this->extra_table); - if($extra_columns['fd'][array_search($name, $this->db_cols)]) { + if(is_string($name) && $extra_columns['fd'][array_search($name, $this->db_cols)]) { $criteria[] = $this->db->expression($this->table_name,$this->table_name.'.',array( array_search($name, $this->db_cols) => $val, ));