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
|
@ -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 New Issue