aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron/cron_task_base.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/cron/cron_task_base.php')
-rw-r--r--phpBB/includes/cron/cron_task_base.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/cron/cron_task_base.php b/phpBB/includes/cron/cron_task_base.php
index bdd96ec8f5..a75e27ac13 100644
--- a/phpBB/includes/cron/cron_task_base.php
+++ b/phpBB/includes/cron/cron_task_base.php
@@ -16,7 +16,10 @@ if (!defined('IN_PHPBB'))
exit;
}
-include_once($phpbb_root_path . 'includes/cron/cron_task.' . $phpEx);
+if (!class_exists('cron_task'))
+{
+ include_once($phpbb_root_path . 'includes/cron/cron_task.' . $phpEx);
+}
/**
* Cron task base class. Provides sensible defaults for cron tasks