diff options
author | Christian Schneider | 2009-02-17 13:48:04 +0000 |
---|---|---|
committer | Christian Schneider | 2009-02-17 13:48:04 +0000 |
commit | 3e691e8e56417de13e2b958386af2059ba80ebbd (patch) | |
tree | e1938914dea1ab5902c21944b493a44f9fd017e7 /it_dbi.class | |
parent | 019f348b0c72105d3196c458f954ed4d330fd55d (diff) | |
download | itools-3e691e8e56417de13e2b958386af2059ba80ebbd.tar.gz itools-3e691e8e56417de13e2b958386af2059ba80ebbd.tar.bz2 itools-3e691e8e56417de13e2b958386af2059ba80ebbd.zip |
Fix it_dbi NOT IN with empty array and added IN/NOT IN tests
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index 4e033b4..66f75a6 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -324,7 +324,7 @@ function _where($params = "", $link = null, $omit_where = false) $query .= "$sep$field $op ('" . join("','", $qvals) . "')"; # null is mapped to '' } else - $query .= $sep . "0"; + $query .= $sep . (($op == 'IN') ? "0" : "1"); break; } |