1
1
Fork 0

Merge pull request #6758 from MrPetovan/bug/notices

Fix various notice messages
This commit is contained in:
Tobias Diekershoff 2019-02-25 14:33:42 +01:00 committed by GitHub
commit c3b7ce349d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -67,6 +67,7 @@ class BBCode extends BaseObject
$post["after"] = trim(substr($body, $pos + strlen($data[0])));
} else {
$post["text"] = trim(str_replace($data[0], "", $body));
$post["after"] = '';
}
$attacheddata = $data[2];

View file

@ -850,7 +850,7 @@ class Worker
}
if (!empty($waiting)) {
$priority = array_shift(array_keys($waiting));
$priority = array_keys($waiting)[0];
Logger::info('No underassigned priority found, now taking the highest priority.', ['priority' => $priority]);
return $priority;
}