diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-11-23 18:09:33 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-11-23 18:15:45 -0500 |
commit | a72ea2bc98bd75bf02414e6e5c7723c9ec47a97d (patch) | |
tree | c216cefda92f1ff34fd4580dfc35fa2474a856a1 /phpBB/includes | |
parent | 6f40960071129aafc2218ec23264c90af75fbad4 (diff) | |
download | forums-a72ea2bc98bd75bf02414e6e5c7723c9ec47a97d.tar forums-a72ea2bc98bd75bf02414e6e5c7723c9ec47a97d.tar.gz forums-a72ea2bc98bd75bf02414e6e5c7723c9ec47a97d.tar.bz2 forums-a72ea2bc98bd75bf02414e6e5c7723c9ec47a97d.tar.xz forums-a72ea2bc98bd75bf02414e6e5c7723c9ec47a97d.zip |
[ticket/10461] Add a comment explaining the logic here.
PHPBB3-10461
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_admin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 3916e769ac..526bc16ff0 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2609,6 +2609,10 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id $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) { // Save the queries, because there are no logs to display |