1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/10461] Correct $log_count check in view_log() so we show logs again.

We pass $log_count as false now when we do not need to know how many log
entries there are. However when $log_count is false, $log_count == 0 will be
true as well and thus we will return early with 0.

PHPBB3-9874
PHPBB3-10461
This commit is contained in:
Andreas Fischer 2011-11-23 22:56:24 +01:00
parent f5633d281e
commit 6f40960071

View File

@ -2609,7 +2609,7 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
$db->sql_freeresult($result);
}
if ($log_count == 0)
if ($log_count === 0)
{
// Save the queries, because there are no logs to display
return 0;