summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index be802b7..156c487 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -326,6 +326,7 @@ function _from($params, $omit_from = false)
*/
function _where($params)
{
+ $dyncols_enabled = !strlen($params['JOIN'] . $params['FROM']);
unset($params['JOIN'], $params['FROM']);
if (is_array($params) && (count($params) > 0))
@@ -372,7 +373,7 @@ function _where($params)
$qval = $this->escape_string((string)$value);
}
- if ($this->_fields['dyncols'] && !$this->_fields[$field])
+ if ($dyncols_enabled && $this->_fields['dyncols'] && !$this->_fields[$field])
$field = "JSON_EXTRACT(dyncols, " . $this->escape_string('$.' . $field) . ")";
switch ($op)