Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
iglocska committed Sep 16, 2024
2 parents de39176 + 4f42d50 commit 72d821a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ For installation via docker, refer to the [cerebrate-docker](https://github.com/
~~~~
The software is released under the AGPLv3.
Copyright (C) 2019, 2021 Andras Iklody
Copyright (C) 2020-2021 Sami Mokaddem
Copyright (C) 2019-2024 Andras Iklody
Copyright (C) 2020-2024 Sami Mokaddem
Copyright (C) CIRCL - Computer Incident Response Center Luxembourg
~~~~
7 changes: 6 additions & 1 deletion src/Controller/Component/NavigationComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ public function getUserBookmarks(): array
$userSettingTable = TableRegistry::getTableLocator()->get('UserSettings');
$setting = $userSettingTable->getSettingByName($this->request->getAttribute('identity'), 'ui.bookmarks');
$bookmarks = is_null($setting) ? [] : json_decode($setting->value, true);

if (empty($bookmarks)) {
return [];
}
$links = array_map(function($bookmark) {
if (!isset($bookmark['name']) || !isset($bookmark['label']) || !isset($bookmark['url'])) {
return [];
}
return [
'name' => $bookmark['name'],
'label' => $bookmark['label'],
Expand Down

0 comments on commit 72d821a

Please sign in to comment.