From 3e691e8e56417de13e2b958386af2059ba80ebbd Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 17 Feb 2009 13:48:04 +0000 Subject: Fix it_dbi NOT IN with empty array and added IN/NOT IN tests --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') 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; } -- cgit v1.2.3