mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 09:35:24 +02:00
This is a workaround for an issue involving PHP >= 4.3.4 and MSSQL under certain conditions which caused a space to be returned instead of an empty string.
See bug #830 for details If using MSSQL, please test this change and report any errors on that bug report git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5453 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b5490a243f
commit
6087293182
@ -289,7 +289,7 @@ class sql_db
|
||||
|
||||
while( list($key, $value) = @each($row) )
|
||||
{
|
||||
$row[$key] = stripslashes($value);
|
||||
$row[$key] = ($value === ' ') ? trim($value) : stripslashes($value);
|
||||
}
|
||||
@reset($row);
|
||||
|
||||
@ -317,7 +317,7 @@ class sql_db
|
||||
{
|
||||
while( list($key, $value) = @each($row) )
|
||||
{
|
||||
$rowset[$i][$key] = stripslashes($value);
|
||||
$rowset[$i][$key] = ($value === ' ') ? trim($value) : stripslashes($value);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
@ -356,7 +356,7 @@ class sql_db
|
||||
if( empty($this->row[$query_id]) )
|
||||
{
|
||||
$this->row[$query_id] = @mssql_fetch_array($query_id);
|
||||
$result = stripslashes($this->row[$query_id][$field]);
|
||||
$result = ($this->row[$query_id][$field] === ' ') ? trim($this->row[$query_id][$field]) : stripslashes($this->row[$query_id][$field]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user