Check for bad worker priorities

This commit is contained in:
Michael 2020-12-08 21:58:32 +00:00
parent 7e3196776b
commit dd94fb1242
5 changed files with 15 additions and 6 deletions

View file

@ -1568,7 +1568,7 @@ class Item
$item['network'] = Protocol::DFRN;
$item['protocol'] = Conversation::PARCEL_DIRECT;
if (is_int($notify)) {
if (in_array($notify, PRIORITIES)) {
$priority = $notify;
}
} else {
@ -2912,7 +2912,7 @@ class Item
$_SESSION["authenticated"] = true;
$_SESSION["uid"] = $contact['uid'];
return $result;
return (bool)$result;
}
/**