aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 939bcf2356..cd3a4fb270 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3303,7 +3303,7 @@ function page_header($page_title = '', $display_online_list = true)
/**
* Generate page footer
*/
-function page_footer()
+function page_footer($run_cron = true)
{
global $db, $config, $template, $user, $auth, $cache, $messenger, $starttime, $phpbb_root_path, $phpEx;
@@ -3345,7 +3345,7 @@ function page_footer()
);
// Call cron-type script
- if (!defined('IN_CRON'))
+ if (!defined('IN_CRON') && $run_cron)
{
$cron_type = '';