Fix further notes and warnings

This commit is contained in:
Michael Vogel 2019-11-19 11:02:35 +01:00
parent d62cd5defc
commit 100dfea524
2 changed files with 13 additions and 6 deletions

View file

@ -653,6 +653,9 @@ class Transmitter
public static function ItemArrayFromMail($mail_id)
{
$mail = DBA::selectFirst('mail', [], ['id' => $mail_id]);
if (!DBA::isResult($mail)) {
return [];
}
$reply = DBA::selectFirst('mail', ['uri'], ['parent-uri' => $mail['parent-uri'], 'reply' => false]);
@ -1234,6 +1237,10 @@ class Transmitter
*/
public static function createNote($item)
{
if (empty($item)) {
return [];
}
if ($item['event-type'] == 'event') {
$type = 'Event';
} elseif (!empty($item['title'])) {