- added a final check on $link_item, as it might not be initialized or no
  record was found, thanks to @AlfredSK for reporting this
- see #11632
2022.09-rc
Roland Häder 2022-07-13 22:04:16 +02:00
rodzic 59a1ba4fae
commit a38209db1e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: C82EDE5DDFA0BA77
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -183,6 +183,13 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow
}
}
// Final check on $link_item
// @see https://github.com/friendica/friendica/issues/11632#issuecomment-1183365937
if (empty($link_item)) {
$this->logger->info('Link item is still empty. Dumping whole Notification object:', [$Notification]);
return $message;
}
$link = $this->baseUrl . '/display/' . urlencode($link_item['guid']);
$body = BBCode::toPlaintext($item['body'], false);