mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'bantu/ticket/10461' into prep-release-3.0.10
* bantu/ticket/10461: [ticket/10461] Add a comment explaining the logic here. [ticket/10461] Correct $log_count check in view_log() so we show logs again.
This commit is contained in:
commit
74bca1d97b
1 changed files with 5 additions and 1 deletions
|
@ -2609,7 +2609,11 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($log_count == 0)
|
// $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
|
// Save the queries, because there are no logs to display
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue