Merge pull request #7910 from annando/notice

Fix a notice about an undefined "attach" index
2022.09-rc
Tobias Diekershoff 2019-12-06 07:27:16 +01:00 zatwierdzone przez GitHub
commit 03e2b04e8f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2567,7 +2567,7 @@ class Diaspora
}
if ($stored) {
$fields = ['body', 'tag', 'app', 'created', 'object-type', 'uri', 'guid',
$fields = ['body', 'title', 'attach', 'tag', 'app', 'created', 'object-type', 'uri', 'guid',
'author-name', 'author-link', 'author-avatar'];
$condition = ['guid' => $guid, 'visible' => true, 'deleted' => false, 'private' => false];
$item = Item::selectFirst($fields, $condition);