From 0c90a7c23417c166e749020a992fd19c2682322f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 29 Apr 2015 16:34:26 +0000 Subject: [PATCH] Avoid some more ambiguous columns --- etemplate/inc/class.so_sql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 3cf3ea64fe..0200535ad5 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -941,11 +941,11 @@ class so_sql } elseif ($val === "!''") { - $db_filter[] = $col." != ''"; + $db_filter[] = $this->table_name . '.' .$col." != ''"; } else { - $db_filter[$col] = $val; + $db_filter[$this->table_name . '.' .$col] = $val; } } }