mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 08:08:33 -04:00
Merge pull request #10406 from nextcloud/bugfix/10405/undefined-index-classes
Not all sidebar entries have the "classes" attribute
This commit is contained in:
commit
6514bf1e18
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@
|
|||
* @return int Returns the pinned value
|
||||
*/
|
||||
function NavigationListElements($item, $l, $pinned) {
|
||||
strpos($item['classes'], 'pinned') !== false ? $pinned++ : '';
|
||||
strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : '';
|
||||
?>
|
||||
<li
|
||||
data-id="<?php p($item['id']) ?>"
|
||||
|
|
|
|||
Loading…
Reference in a new issue