aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-11-23 22:56:24 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-11-23 23:03:41 +0100
commit6f40960071129aafc2218ec23264c90af75fbad4 (patch)
tree020a0b9f0037d1bf18df3cf6a0b21bfcdb754ca3 /phpBB/includes/functions_admin.php
parentf5633d281e04d93f5e4c0e0a01ffc82c9df12a8f (diff)
downloadforums-6f40960071129aafc2218ec23264c90af75fbad4.tar
forums-6f40960071129aafc2218ec23264c90af75fbad4.tar.gz
forums-6f40960071129aafc2218ec23264c90af75fbad4.tar.bz2
forums-6f40960071129aafc2218ec23264c90af75fbad4.tar.xz
forums-6f40960071129aafc2218ec23264c90af75fbad4.zip
[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
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 513b7a68b2..3916e769ac 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -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;