forked from science-ation/science-ation
- Properly construct the WHERE clause in the table editor
This commit is contained in:
parent
df38d87b40
commit
446b54f693
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user