mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 20:08:55 +00:00
[ticket/10461] Add a comment explaining the logic here.
PHPBB3-10461
This commit is contained in:
parent
6f40960071
commit
a72ea2bc98
1 changed files with 4 additions and 0 deletions
|
@ -2609,6 +2609,10 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
|
||||||
$db->sql_freeresult($result);
|
$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)
|
if ($log_count === 0)
|
||||||
{
|
{
|
||||||
// Save the queries, because there are no logs to display
|
// Save the queries, because there are no logs to display
|
||||||
|
|
Loading…
Add table
Reference in a new issue