Merge pull request #1725 from ajabep/patch-1

Fix a crash when generating an atom feed with no bookmarks
This commit is contained in:
ArthurHoaro 2021-04-03 13:16:54 +02:00 committed by GitHub
commit 2c2c349e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ class BookmarkFileService implements BookmarkServiceInterface
$this->isLoggedIn = $isLoggedIn;
if (!$this->isLoggedIn && $this->conf->get('privacy.hide_public_links', false)) {
$this->bookmarks = [];
$this->bookmarks = new BookmarkArray();
} else {
try {
$this->bookmarks = $this->bookmarksIO->read();