[ticket/10461] Add a comment explaining the logic here.

PHPBB3-10461
This commit is contained in:
Oleg Pudeyev 2011-11-23 18:09:33 -05:00
parent 6f40960071
commit a72ea2bc98

View file

@ -2609,6 +2609,10 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
$db->sql_freeresult($result);
}
// $log_count may be false here if false was passed in for it,
// because in this case we did not run the COUNT() query above.
// If we ran the COUNT() query and it returned zero rows, return;
// otherwise query for logs below.
if ($log_count === 0)
{
// Save the queries, because there are no logs to display