aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-08-24 18:00:28 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-08-24 18:00:28 +0000
commit4c504813795b89b525be4d46268096d51335c80c (patch)
treed2e70d6997669336607aa6ded6786334819ae303 /phpBB
parenta42fe680f40215159768e6b0cde4b851b711ca9b (diff)
downloadforums-4c504813795b89b525be4d46268096d51335c80c.tar
forums-4c504813795b89b525be4d46268096d51335c80c.tar.gz
forums-4c504813795b89b525be4d46268096d51335c80c.tar.bz2
forums-4c504813795b89b525be4d46268096d51335c80c.tar.xz
forums-4c504813795b89b525be4d46268096d51335c80c.zip
#14211
- 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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/db/firebird.php2
-rw-r--r--phpBB/includes/functions_display.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php
index af8d523ab1..bc171e61be 100644
--- a/phpBB/includes/db/firebird.php
+++ b/phpBB/includes/db/firebird.php
@@ -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;
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index a28d91a7e9..208226257d 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -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']))
{