From 557d09bb72f7e9848b6fc50ed4e2ba651b89e743 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen <acydburn@phpbb.com> Date: Sun, 10 Apr 2005 18:07:12 +0000 Subject: - added updated coding guidelines - introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users - changed bot code to act on useragent || ip git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/report.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/report.php') diff --git a/phpBB/report.php b/phpBB/report.php index d97cf4c755..19317afc78 100644 --- a/phpBB/report.php +++ b/phpBB/report.php @@ -24,7 +24,7 @@ $user->setup('mcp'); $id = request_var('p', request_var('pm', 0)); $report_post = (request_var('p', 0)) ? true : false; $reason_id = request_var('reason_id', 0); -$user_notify = (!empty($_REQUEST['notify']) && $user->data['user_id'] != ANONYMOUS) ? true : false; +$user_notify = (!empty($_REQUEST['notify']) && $user->data['is_registered']) ? true : false; $report_text = request_var('report_text', ''); if (!$id) @@ -100,7 +100,7 @@ $result = $db->sql_query($sql); if ($row = $db->sql_fetchrow($result)) { - if ($user->data['user_id'] != ANONYMOUS) + if ($user->data['is_registered']) { // A report exists, extract $row if we're going to display the form if ($reason_id) @@ -295,7 +295,7 @@ $template->assign_vars(array( 'S_REPORT_ACTION' => "{$phpbb_root_path}report.$phpEx$SID&$u_report" . (($report_id) ? "&report_id=$report_id" : ''), 'S_NOTIFY' => (!empty($user_notify)) ? true : false, - 'S_CAN_NOTIFY' => ($user->data['user_id'] == ANONYMOUS) ? false : true, + 'S_CAN_NOTIFY' => ($user->data['is_registered']) ? true : false, 'S_REPORT_POST' => $report_post) ); -- cgit v1.2.1