From f28585bedd45628af0c1ec1ce3ec18dedab79f34 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 17 Aug 2002 22:21:59 +0000 Subject: [PATCH] no comment git-svn-id: file:///svn/phpbb/trunk@2870 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/update_script.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/install/update_script.php b/phpBB/install/update_script.php index fd459afcc6..82b4141e1c 100644 --- a/phpBB/install/update_script.php +++ b/phpBB/install/update_script.php @@ -911,7 +911,7 @@ switch ( $this_version ) $forum_id = $row['forum_id']; $sql_ary[] = "UPDATE " . $table_prefix . "forums - SET forum_last_poster_id = " . $row['user_id'] . ", forum_last_poster_name = '" . $row['post_username'] . "', forum_last_post_time = " . $row['post_time'] . " + SET forum_last_poster_id = " . ( ( $row['user_id'] ) ? $row['user_id'] : ANONYMOUS ) . ", forum_last_poster_name = '" . $row['post_username'] . "', forum_last_post_time = " . $row['post_time'] . " WHERE forum_id = $forum_id"; $sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time @@ -926,7 +926,7 @@ switch ( $this_version ) while ( $row2 = $db->sql_fetchrow($result2) ) { $sql_ary[] = "UPDATE " . $table_prefix . "topics - SET topic_first_poster_name = '" . $row2['post_username'] . "', topic_last_poster_id = " . $row2['id2'] . ", topic_last_post_time = " . $row2['post_time'] . ", topic_last_poster_name = '" . $row2['post_username2'] . "' + SET topic_first_poster_name = '" . $row2['post_username'] . "', topic_last_poster_id = " . ( ( $row2['id2'] ) ? $row2['id2'] : ANONYMOUS ) . ", topic_last_post_time = " . $row2['post_time'] . ", topic_last_poster_name = '" . $row2['post_username2'] . "' WHERE topic_id = " . $row2['topic_id']; } $db->sql_freeresult($result2);