aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-08-11 18:21:59 +0000
committerNils Adermann <naderman@naderman.de>2006-08-11 18:21:59 +0000
commit9086adad3c5fb9454a6df9149fb3f4ab7987b8ef (patch)
treebc29f0da9e1943a3ab717d22519623e3ddda030a /phpBB/includes/db
parentd8af8223cd258678aca5037db0446aa1ff8ea78a (diff)
downloadforums-9086adad3c5fb9454a6df9149fb3f4ab7987b8ef.tar
forums-9086adad3c5fb9454a6df9149fb3f4ab7987b8ef.tar.gz
forums-9086adad3c5fb9454a6df9149fb3f4ab7987b8ef.tar.bz2
forums-9086adad3c5fb9454a6df9149fb3f4ab7987b8ef.tar.xz
forums-9086adad3c5fb9454a6df9149fb3f4ab7987b8ef.zip
Oops, I forgot the negate bit in sql_in_set()
git-svn-id: file:///svn/phpbb/trunk@6262 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/dbal.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index 53850b77b2..0dd04c1a7b 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -285,7 +285,7 @@ class dbal
return $query;
}
- function sql_in_set($field, $array)
+ function sql_in_set($field, $array, $negate = false)
{
if (!sizeof($array))
{
@@ -320,11 +320,11 @@ class dbal
if (sizeof($values) == 1)
{
- return $field . ' = ' . $values[0];
+ return $field . ($negate ? ' <> ' : ' = ') . $values[0];
}
else
{
- return $field . ' IN (' . implode(',', $values) . ')';
+ return $field . ($negate ? ' NOT IN ' : ' IN ' ) . '(' . implode(',', $values) . ')';
}
}