Not all sidebar entries have the "classes" attribute
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
adcc061166
commit
68ba96a7d5
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
* @return int Returns the pinned value
|
* @return int Returns the pinned value
|
||||||
*/
|
*/
|
||||||
function NavigationListElements($item, $l, $pinned) {
|
function NavigationListElements($item, $l, $pinned) {
|
||||||
strpos($item['classes'], 'pinned') !== false ? $pinned++ : '';
|
strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : '';
|
||||||
?>
|
?>
|
||||||
<li
|
<li
|
||||||
data-id="<?php p($item['id']) ?>"
|
data-id="<?php p($item['id']) ?>"
|
||||||
|
|
Loading…
Reference in a new issue