From ecf440ed574b2fc44427945ffcf29f011919a92e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 29 Aug 2013 13:28:08 +0000 Subject: [PATCH] fixed SQL error caused by so_sql prefixing 0 with table name --- 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 94a8fa902b..76a3f53908 100644 --- a/etemplate/inc/class.so_sql_cf.inc.php +++ b/etemplate/inc/class.so_sql_cf.inc.php @@ -501,7 +501,7 @@ class so_sql_cf extends so_sql { foreach($only_keys as $key => &$col) { - if(is_numeric($key) && in_array($col, $this->db_cols)) + if(is_numeric($key) && in_array($col, $this->db_cols, true)) { $col = $this->table_name .'.'.array_search($col, $this->db_cols).' AS '.$col; }