phpBB

Code Changes

File: includes/mcp/mcp_notes.php

  Unmodified   Added   Modified   Removed
Line 98Line 98
		$userrow = $db->sql_fetchrow($result);
$db->sql_freeresult($result);


		$userrow = $db->sql_fetchrow($result);
$db->sql_freeresult($result);


		if (!$userrow)

		if (!$userrow || (int) $userrow['user_id'] === ANONYMOUS)

		{
trigger_error('NO_USER');
}

		{
trigger_error('NO_USER');
}

Line 162Line 162
		{
if (check_form_key('mcp_notes'))
{

		{
if (check_form_key('mcp_notes'))
{

				$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_USER_FEEDBACK', false, array($userrow['username']));
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_FEEDBACK', false, array(

				$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_USER_FEEDBACK', false, [$userrow['username']]);
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_FEEDBACK', false, [

					'forum_id' => 0,
'topic_id' => 0,
$userrow['username']

					'forum_id' => 0,
'topic_id' => 0,
$userrow['username']

				));
$phpbb_log->add('user', $user->data['user_id'], $user->ip, 'LOG_USER_GENERAL', false, array(

				]);
$phpbb_log->add('user', $user->data['user_id'], $user->ip, 'LOG_USER_GENERAL', false, [

					'reportee_id' => $user_id,

					'reportee_id' => $user_id,

					$usernote
));

					utf8_encode_ucr($usernote)
]);


$msg = $user->lang['USER_FEEDBACK_ADDED'];
}


$msg = $user->lang['USER_FEEDBACK_ADDED'];
}