aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php4
-rw-r--r--phpBB/phpbb/cron/manager.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 7700dcfd27..1a3560dbb1 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5254,7 +5254,7 @@ function page_footer($run_cron = true, $display_template = true, $exit_handler =
// Call cron-type script
$call_cron = false;
- if (!defined('IN_CRON') && !$config['use_system_cron'] && $run_cron && !$config['board_disable'] && !$user->data['is_bot'] && !$cache->get('cron.lock_check'))
+ if (!defined('IN_CRON') && !$config['use_system_cron'] && $run_cron && !$config['board_disable'] && !$user->data['is_bot'] && !$cache->get('_cron.lock_check'))
{
$call_cron = true;
$time_now = (!empty($user->time_now) && is_int($user->time_now)) ? $user->time_now : time();
@@ -5286,7 +5286,7 @@ function page_footer($run_cron = true, $display_template = true, $exit_handler =
}
else
{
- $cache->put('cron.lock_check', true, 300);
+ $cache->put('_cron.lock_check', true, 60);
}
}
diff --git a/phpBB/phpbb/cron/manager.php b/phpBB/phpbb/cron/manager.php
index 5c8ac04b77..df9bed4bd7 100644
--- a/phpBB/phpbb/cron/manager.php
+++ b/phpBB/phpbb/cron/manager.php
@@ -72,7 +72,8 @@ class manager
* @return \phpbb\cron\task\wrapper|null
*/
public function find_one_ready_task()
- {
+ {
+ shuffle($this->tasks);
foreach ($this->tasks as $task)
{
if ($task->is_ready())
bad6f45a1f9fc9e473d3b3b66c132'>phpBB/includes/db/mysql.php2
-rw-r--r--phpBB/includes/db/mysqli.php2
-rw-r--r--phpBB/includes/db/oracle.php2
-rw-r--r--phpBB/includes/db/postgres.php2
-rw-r--r--phpBB/includes/db/sqlite.php2
8 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php
index d23d1866c1..4382d891d0 100644
--- a/phpBB/includes/db/firebird.php
+++ b/phpBB/includes/db/firebird.php
@@ -238,7 +238,7 @@ class dbal_firebird extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php
index b222588cf2..79586c343d 100644
--- a/phpBB/includes/db/mssql.php
+++ b/phpBB/includes/db/mssql.php
@@ -162,7 +162,7 @@ class dbal_mssql extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/mssql_odbc.php b/phpBB/includes/db/mssql_odbc.php
index 7722f79952..30660a2652 100644
--- a/phpBB/includes/db/mssql_odbc.php
+++ b/phpBB/includes/db/mssql_odbc.php
@@ -174,7 +174,7 @@ class dbal_mssql_odbc extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 2d689f86f9..5c8d08b19d 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -183,7 +183,7 @@ class dbal_mysql extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php
index 32765d15f7..6041320c7e 100644
--- a/phpBB/includes/db/mysqli.php
+++ b/phpBB/includes/db/mysqli.php
@@ -163,7 +163,7 @@ class dbal_mysqli extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/oracle.php b/phpBB/includes/db/oracle.php
index a63c06e5c0..d31803dad2 100644
--- a/phpBB/includes/db/oracle.php
+++ b/phpBB/includes/db/oracle.php
@@ -355,7 +355,7 @@ class dbal_oracle extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php
index bb689a7394..b214533f9d 100644
--- a/phpBB/includes/db/postgres.php
+++ b/phpBB/includes/db/postgres.php
@@ -202,7 +202,7 @@ class dbal_postgres extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**
diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php
index 5ae36df4f5..3acb777c82 100644
--- a/phpBB/includes/db/sqlite.php
+++ b/phpBB/includes/db/sqlite.php
@@ -135,7 +135,7 @@ class dbal_sqlite extends dbal
return false;
}
- return ($this->query_result) ? $this->query_result : false;
+ return ($this->query_result !== false) ? $this->query_result : false;
}
/**