1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

This is a nicer way of doing the NOT()...

Oh and I forgot to say hi in my first commit here, so here goes.. Hi everyone :)


git-svn-id: file:///svn/phpbb/trunk@7335 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Vic D'Elfant 2007-04-12 19:34:36 +00:00
parent 3d70ffd924
commit 8cad62fc85

View File

@ -725,7 +725,7 @@ function define_cond_option($hardcoded, $cond_option, $rule_option, $global_rule
$sql .= 'WHERE';
}
$sql .= " NOT (g.group_name IN ('GUESTS', 'BOTS') AND g.group_type = " . GROUP_SPECIAL . ')
$sql .= " (g.group_name NOT IN ('GUESTS', 'BOTS') OR g.group_type <> " . GROUP_SPECIAL . ')
ORDER BY g.group_type DESC, g.group_name ASC';
$result = $db->sql_query($sql);