mirror of
https://github.com/friendica/friendica
synced 2025-04-27 03:10:12 +00:00
Fix workerqueue entries with wrong priority
This commit is contained in:
parent
30bcb24af7
commit
a8839517fe
2 changed files with 3 additions and 3 deletions
|
@ -1322,7 +1322,7 @@ class Worker
|
|||
$found = DBA::exists('workerqueue', ['command' => $command, 'parameter' => $parameters, 'done' => false]);
|
||||
$added = 0;
|
||||
|
||||
if (!in_array($priority, PRIORITIES)) {
|
||||
if (!is_int($priority) || !in_array($priority, PRIORITIES)) {
|
||||
Logger::warning('Invalid priority', ['priority' => $priority, 'command' => $command, 'callstack' => System::callstack(20)]);
|
||||
$priority = PRIORITY_MEDIUM;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue