mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- some fixes
- added script for easy adjustement of username_clean column within the users table (please see the note i added to the utf8_clean_string() function) git-svn-id: file:///svn/phpbb/trunk@6561 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -298,19 +298,16 @@ class dbal
|
||||
$array = array($array);
|
||||
}
|
||||
|
||||
$values = array();
|
||||
foreach ($array as $var)
|
||||
if (sizeof($array) == 1)
|
||||
{
|
||||
$values[] = $this->_sql_validate_value($var);
|
||||
}
|
||||
@reset($array);
|
||||
$var = current($array);
|
||||
|
||||
if (sizeof($values) == 1)
|
||||
{
|
||||
return $field . ($negate ? ' <> ' : ' = ') . $values[0];
|
||||
return $field . ($negate ? ' <> ' : ' = ') . $this->_sql_validate_value($var);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $field . ($negate ? ' NOT IN ' : ' IN ' ) . '(' . implode(', ', $values) . ')';
|
||||
return $field . ($negate ? ' NOT IN ' : ' IN ' ) . '(' . implode(', ', array_map(array($this, '_sql_validate_value'), $array)) . ')';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user