- Properly construct the WHERE clause in the table editor

This commit is contained in:
dave 2008-01-23 20:20:54 +00:00
parent df38d87b40
commit 446b54f693

View File

@ -983,7 +983,7 @@ class TableEditor
if(count($this->fieldFilterList)) { if(count($this->fieldFilterList)) {
foreach($this->fieldFilterList AS $k=>$v) { foreach($this->fieldFilterList AS $k=>$v) {
$where = ($v == false) ? $k : "`$k`='$v'"; $where[] = ($v == false) ? $k : "`$k`='$v'";
} }
} }
return array($sel, $from, $where); return array($sel, $from, $where);