aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-03-02 06:43:10 -0500
committerAndreas Fischer <bantu@phpbb.com>2011-03-12 14:57:34 +0100
commit9a4804525471b69b1ed0beb4ea7145faeb8855b8 (patch)
tree4986bfcb0b451da6163f9a04f8a1099f56bc3674
parenta8f2e79fbc485c0133e616068570ed369e23935c (diff)
downloadforums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar
forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar.gz
forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar.bz2
forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar.xz
forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.zip
[ticket/10046] Do not link bots to cron.php.
Bots, generally speaking, will not request cron.php immediately, thus telling them to request it is pointless. PHPBB3-10046
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 6a2d132175..80b51f80ae 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4611,7 +4611,7 @@ function page_footer($run_cron = true)
// Call cron-type script
$call_cron = false;
- if (!defined('IN_CRON') && $run_cron && !$config['board_disable'])
+ if (!defined('IN_CRON') && $run_cron && !$config['board_disable'] && !$user->data['is_bot'])
{
$call_cron = true;
$time_now = (!empty($user->time_now) && is_int($user->time_now)) ? $user->time_now : time();