From 93eac83b8a74f7489613cba59cd025cded9ed124 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 4 Jul 2013 16:42:33 +0000 Subject: [PATCH] fixed wrong bracket causing SQL error: is not unique --- etemplate/inc/class.so_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 3092af989d..f82f88e709 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -1002,7 +1002,7 @@ class so_sql // add table-name to otherwise ambiguous id over which we join (incl. "AS id" to return it with the right name) if ($join && $this->autoinc_id) { - if (is_array($colums) && ($key = array_search($this->autoinc_id, $colums) !== false)) + if (is_array($colums) && ($key = array_search($this->autoinc_id, $colums)) !== false) { $colums[$key] = $this->table_name.'.'.$this->autoinc_id.' AS '.$this->autoinc_id; }