From 3d99f3e9b3cbaf013c4aeab86227321a92ed919b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 28 May 2010 11:08:36 +0000 Subject: [PATCH] if is not a string but 0, the comparsion == ->autoinc_id is true, which leads to an SQL Query error, if an extra column is used in sorting/filtering together with the lettersearch --- 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 786be20164..9864a56927 100644 --- a/etemplate/inc/class.so_sql_cf.inc.php +++ b/etemplate/inc/class.so_sql_cf.inc.php @@ -488,7 +488,7 @@ class so_sql_cf extends so_sql foreach($filter as $name => $val) { // replace ambiguous auto-id with (an exact match of) table_name.autoid - if ($name == $this->autoinc_id) + if (is_string($name) && $name == $this->autoinc_id) { if ((int)$filter[$this->autoinc_id]) {