- 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:
David M 2007-08-24 18:00:28 +00:00
parent a42fe680f4
commit 4c50481379
2 changed files with 2 additions and 2 deletions

View file

@ -297,7 +297,7 @@ class dbal_firebird extends dbal
foreach (get_object_vars($cur_row) as $key => $value) 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; return (sizeof($row)) ? $row : false;

View file

@ -997,7 +997,7 @@ function watch_topic_forum($mode, &$s_watching, &$s_watching_img, $user_id, $for
$db->sql_freeresult($result); $db->sql_freeresult($result);
} }
if (!is_null($notify_status)) if (!is_null($notify_status) && $notify_status !== '')
{ {
if (isset($_GET['unwatch'])) if (isset($_GET['unwatch']))
{ {