| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2609,6 +2609,10 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id | |||
| 2609 | 2609 | $db->sql_freeresult($result); | |
| 2610 | 2610 | } | |
| 2611 | 2611 | ||
| 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. | ||
| 2612 | 2616 | if ($log_count === 0) | |
| 2613 | 2617 | { | |
| 2614 | 2618 | // Save the queries, because there are no logs to display | |
| Back | FazBrowse Home | New Git URL |
0 commit comments