1
0
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:
Joas Schilling
2011-02-24 23:51:42 +01:00
parent 5e2bbdb22b
commit a25238e0c1
4 changed files with 18 additions and 14 deletions

View File

@@ -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);