aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-09-30 23:26:33 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-09-30 23:26:33 +0000
commitb30b9b3b68b95e1aa559116fcf718fdbdc672855 (patch)
treec29950357cb58c82adfdd775c0377b2a6c047721 /phpBB/index.php
parentf10ac6430527cc89b4a57518cefb55a06330f75a (diff)
downloadforums-b30b9b3b68b95e1aa559116fcf718fdbdc672855.tar
forums-b30b9b3b68b95e1aa559116fcf718fdbdc672855.tar.gz
forums-b30b9b3b68b95e1aa559116fcf718fdbdc672855.tar.bz2
forums-b30b9b3b68b95e1aa559116fcf718fdbdc672855.tar.xz
forums-b30b9b3b68b95e1aa559116fcf718fdbdc672855.zip
Fixed sql = NULL cockup and bug #466615
git-svn-id: file:///svn/phpbb/trunk@1106 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 59ec158f2f..c67fe95514 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -141,7 +141,7 @@ if($total_categories = $db->sql_numrows($q_categories))
AND u.user_id = p.poster_id
$limit_forums
UNION (
- SELECT f.*, NULL, NULL, NULL, NULL
+ SELECT f.*, NULL, NULL, NULL
FROM " . FORUMS_TABLE . " f
WHERE NOT EXISTS (
SELECT p.post_time
@@ -190,7 +190,7 @@ if($total_categories = $db->sql_numrows($q_categories))
WHERE t.forum_id = f.forum_id
AND p.post_id = t.topic_last_post_id
AND p.post_time > " . $userdata['session_last_visit'] . "
- AND t.topic_moved_id = NULL";
+ AND t.topic_moved_id IS NULL";
if(!$new_topic_ids = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query new topic information", "", __LINE__, __FILE__, $sql);