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 @@ public function __construct(
|
||||||
$this->isLoggedIn = $isLoggedIn;
|
$this->isLoggedIn = $isLoggedIn;
|
||||||
|
|
||||||
if (!$this->isLoggedIn && $this->conf->get('privacy.hide_public_links', false)) {
|
if (!$this->isLoggedIn && $this->conf->get('privacy.hide_public_links', false)) {
|
||||||
$this->bookmarks = [];
|
$this->bookmarks = new BookmarkArray();
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
$this->bookmarks = $this->bookmarksIO->read();
|
$this->bookmarks = $this->bookmarksIO->read();
|
||||||
|
|
Loading…
Reference in a new issue