Skip to content

Commit 2665578

Browse files
committed
fixup! IBX-6773: Bookmarks for non-accessible contents cause exception
1 parent f620af5 commit 2665578

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eZ/Publish/Core/Repository/BookmarkService.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use Exception;
1212
use eZ\Publish\API\Repository\BookmarkService as BookmarkServiceInterface;
13+
use eZ\Publish\API\Repository\Exceptions\BadStateException;
1314
use eZ\Publish\API\Repository\Repository as RepositoryInterface;
1415
use eZ\Publish\API\Repository\Values\Bookmark\BookmarkList;
1516
use eZ\Publish\API\Repository\Values\Content\Location;
@@ -108,7 +109,7 @@ public function loadBookmarks(int $offset = 0, int $limit = 25): BookmarkList
108109
->sliceBy($limit, $offset);
109110

110111
$result = $this->repository->getlocationService()->find($filter, []);
111-
} catch (\eZ\Publish\API\Repository\Exceptions\BadStateException $e) {
112+
} catch (BadStateException $e) {
112113
return new BookmarkList();
113114
}
114115

0 commit comments

Comments
 (0)