mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
- doing is_null on Oracle is not good, we return empty strings instead git-svn-id: file:///svn/phpbb/trunk@8068 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -297,7 +297,7 @@ class dbal_firebird extends dbal
|
||||
|
||||
foreach (get_object_vars($cur_row) as $key => $value)
|
||||
{
|
||||
$row[strtolower($key)] = trim(str_replace(array("\\0", "\\n"), array("\0", "\n"), $value));
|
||||
$row[strtolower($key)] = (is_string($value)) ? trim(str_replace(array("\\0", "\\n"), array("\0", "\n"), $value)) : $value;
|
||||
}
|
||||
|
||||
return (sizeof($row)) ? $row : false;
|
||||
|
@@ -997,7 +997,7 @@ function watch_topic_forum($mode, &$s_watching, &$s_watching_img, $user_id, $for
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
if (!is_null($notify_status))
|
||||
if (!is_null($notify_status) && $notify_status !== '')
|
||||
{
|
||||
if (isset($_GET['unwatch']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user