FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[ticket/10461] Add a comment explaining the logic here. · sayedather/phpbb3@a72ea2b · GitHub

forked from phpbb/phpbb

Commit a72ea2b

Browse files
committed
[ticket/10461] Add a comment explaining the logic here.
PHPBB3-10461
1 parent 6f40960 commit a72ea2b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎phpBB/includes/functions_admin.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,6 +2609,10 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
26092609
$db->sql_freeresult($result);
26102610
}
26112611

2612+
// $log_count may be false here if false was passed in for it,
2613+
// because in this case we did not run the COUNT() query above.
2614+
// If we ran the COUNT() query and it returned zero rows, return;
2615+
// otherwise query for logs below.
26122616
if ($log_count === 0)
26132617
{
26142618
// Save the queries, because there are no logs to display

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL