aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/cron.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-08-12 18:16:01 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-08-12 18:16:01 +0000
commit3f9348bdf8ccc05f251b85caccaf5a241ae011fc (patch)
treefcdf8e6b0365fb836656ca1e3b33810ea95b0166 /phpBB/cron.php
parentca0139c939cf6c781a12035cf90ea49446ced5bc (diff)
downloadforums-3f9348bdf8ccc05f251b85caccaf5a241ae011fc.tar
forums-3f9348bdf8ccc05f251b85caccaf5a241ae011fc.tar.gz
forums-3f9348bdf8ccc05f251b85caccaf5a241ae011fc.tar.bz2
forums-3f9348bdf8ccc05f251b85caccaf5a241ae011fc.tar.xz
forums-3f9348bdf8ccc05f251b85caccaf5a241ae011fc.zip
fix bug with cron execution for all new RC4 installations as well as those having manually updated.
git-svn-id: file:///svn/phpbb/trunk@8022 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r--phpBB/cron.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index b5a51a1688..79cf0f40fa 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -33,6 +33,12 @@ echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==
// test without flush ;)
// flush();
+//
+if (!isset($config['cron_lock']))
+{
+ set_config('cron_lock', '0', true);
+}
+
// make sure cron doesn't run multiple times in parallel
if ($config['cron_lock'])
{