mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/9874] view_log() performs unneeded count query over all log entries.
PHPBB3-9874
This commit is contained in:
@@ -227,10 +227,10 @@ function mcp_post_details($id, $mode, $action)
|
||||
|
||||
// Get User Notes
|
||||
$log_data = array();
|
||||
$log_count = 0;
|
||||
$log_count = false;
|
||||
view_log('user', $log_data, $log_count, $config['posts_per_page'], 0, 0, 0, $post_info['user_id']);
|
||||
|
||||
if ($log_count)
|
||||
if (!empty($log_data))
|
||||
{
|
||||
$template->assign_var('S_USER_NOTES', true);
|
||||
|
||||
|
Reference in New Issue
Block a user