Merge pull request #1725 from ajabep/patch-1
Fix a crash when generating an atom feed with no bookmarks
This commit is contained in:
commit
2c2c349e8a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue