aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron_lock.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/cron_lock.php')
-rw-r--r--phpBB/includes/cron_lock.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/phpBB/includes/cron_lock.php b/phpBB/includes/cron_lock.php
index 22c052f5ca..1046d62da4 100644
--- a/phpBB/includes/cron_lock.php
+++ b/phpBB/includes/cron_lock.php
@@ -24,9 +24,10 @@ class cron_lock
{
private $cron_id;
- function lock() {
+ function lock()
+ {
global $config, $db;
-
+
if (!isset($config['cron_lock']))
{
set_config('cron_lock', '0', true);
@@ -58,11 +59,12 @@ class cron_lock
{
return false;
}
-
+
return true;
}
-
- function unlock() {
+
+ function unlock()
+ {
global $db;
$sql = 'UPDATE ' . CONFIG_TABLE . "