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