Line 98 | Line 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 162 | Line 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']; }
|
Line 206 | Line 206 |
---|
$sql_sort = $sort_by_sql[$sk] . ' ' . (($sd == 'd') ? 'DESC' : 'ASC');
$keywords = $request->variable('keywords', '', true);
|
$sql_sort = $sort_by_sql[$sk] . ' ' . (($sd == 'd') ? 'DESC' : 'ASC');
$keywords = $request->variable('keywords', '', true);
|
$keywords_param = !empty($keywords) ? '&keywords=' . urlencode(htmlspecialchars_decode($keywords, ENT_COMPAT)) : '';
| $keywords_param = !empty($keywords) ? '&keywords=' . urlencode(html_entity_decode($keywords, ENT_COMPAT)) : '';
|
$log_data = array(); $log_count = 0;
| $log_data = array(); $log_count = 0;
|