diff options
-rw-r--r-- | it_dbi.class | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index ce11a49..56fadbb 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -273,7 +273,10 @@ function _where($params = "", $link = null, $omit_where = false) { if (is_int($field)) /* no key specified; just append */ { - $stringquery .= " $value"; + if (strcasecmp($value, 'OR')) + $stringquery .= " $value"; + else + $sep = ' OR '; } else { |