FIX: uso de nombre de variable equivocada en fabrica

This commit is contained in:
2020-07-24 12:06:06 -04:00
parent e9bee7fa48
commit 0a46604e0c

View File

@ -79,10 +79,10 @@ class Model {
}
foreach ($conditions as $c) {
$cond = (object) [
'column' => $j['column'] ?? $j[0],
'value' => $j['value'] ?? $j[1],
'sym' => strtolower($j['sym'] ?? ($j[2] ?? '=')),
'type' => strtolower($j['type']) ?? ''
'column' => $c['column'] ?? $c[0],
'value' => $c['value'] ?? $c[1],
'sym' => strtolower($c['sym'] ?? ($c[2] ?? '=')),
'type' => strtolower($c['type']) ?? ''
];
$this->conditions []= $cond;
}