diff options
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/it_dbi.class b/it_dbi.class index b681102..4389689 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -445,14 +445,14 @@ function _where($params) foreach ((array)$value as $val) $parts[] = "CONCAT(',',$field,',') LIKE " . $this->escape_string("%,$val,%"); - $query .= $sep . "$field IS NOT NULL AND (" . join(" OR ", $parts) . ")"; # Check for IS NOT NULL to take advantage of index + $query .= $sep . "$field IS NOT NULL AND (" . implode(" OR ", $parts) . ")"; # Check for IS NOT NULL to take advantage of index } else $query .= $sep . "TRUE"; break; case 'MATCH': - $qval = join(' ', (array)$value); + $qval = implode(' ', (array)$value); $query .= "$sep$op ($field) AGAINST (" . $this->escape_string($qval) . " IN BOOLEAN MODE)"; break; @@ -467,7 +467,7 @@ function _where($params) foreach ($value as $val) $qvals[] = $this->escape_string($val); - $query .= "$sep$field $op (" . join(",", $qvals) . ")"; # null is mapped to '' + $query .= "$sep$field $op (" . implode(",", $qvals) . ")"; # null is mapped to '' } else $query .= $sep . (($op == 'IN') ? "FALSE" : "TRUE"); @@ -941,7 +941,7 @@ function _get_field_info() if (preg_match('/^(tiny|small|medium|)int|^float|^double/', $field['Type'])) $this->_convertfunc[$name] = it::match('int', $field['Type']) ? "intval" : "floatval"; } - $this->_fieldnames = "," . join(",", array_keys((array)$this->_fields)) . ","; + $this->_fieldnames = "," . implode(",", array_keys((array)$this->_fields)) . ","; # Consider all fields which have _{localized_defaultlanguage} suffix as localized foreach (preg_grep('/_' . $this->_p['localized_defaultlanguage'] . '$/', array_keys((array)$this->_fields)) as $field) @@ -1125,7 +1125,7 @@ function _query($query, $p) } while ($warning->next() && ++$checked < 20); if ($messages) - it::error(['title' => "Mysql warning: " . $messages[0], 'body' => "$query\n\n" . join("\n", $messages) . "\n"]); + it::error(['title' => "Mysql warning: " . $messages[0], 'body' => "$query\n\n" . implode("\n", $messages) . "\n"]); } return $result; |