diff options
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 34890ee7eb..5f4f321baf 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -19,6 +19,10 @@ * ***************************************************************************/ +// Grab all data +extract($_GET); +extract($_POST); + define('IN_PHPBB', true); $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); @@ -31,10 +35,6 @@ $user->setup(); $auth->acl($user->data); // End session management -// Grab all data -extract($_GET); -extract($_POST); - // Was cancel pressed? If so then redirect to the appropriate page if ( !empty($cancel) ) { @@ -398,7 +398,7 @@ if (isset($post)) 'forum_last_post_id' => intval($post_id), 'forum_last_post_time' => $current_time, 'forum_last_poster_id' => intval($user->data['user_id']), - 'forum_last_poster_name'=> ($username != '') ? $username : '', + 'forum_last_poster_name'=> ($user->data['user_id'] == ANONYMOUS) ? $username : $user->data['username'], ); $sql = 'UPDATE ' . FORUMS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $forum_sql) . ', forum_posts = forum_posts + 1' . $forum_topics_sql . ' WHERE forum_id = ' . intval($forum_id); $db->sql_query($sql); |