mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 11:44:08 +02:00
- solved a problem with magic urls inside brackets, and with bbcodes being treated as IPv6 addresses
- turn NOT IN () and IN () into 1=1 and 1=0 so the database will understand it, instead of throwing an error in sql_in_set [Bug #7118] - some tiny fixes to fulltext_native git-svn-id: file:///svn/phpbb/trunk@6886 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -289,8 +289,16 @@ class dbal
|
||||
{
|
||||
if (!sizeof($array))
|
||||
{
|
||||
// Not optimal, but at least the backtrace should help in identifying where the problem lies.
|
||||
$this->sql_error('No values specified for SQL IN comparison');
|
||||
// NOT IN () actually means everything so use a tautology
|
||||
if ($negate)
|
||||
{
|
||||
return '1=1';
|
||||
}
|
||||
// IN () actually means nothing so use a contradiction
|
||||
else
|
||||
{
|
||||
return '1=0';
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_array($array))
|
||||
|
Reference in New Issue
Block a user