Skip to content

Commit

Permalink
Merge pull request #10406 from nextcloud/bugfix/10405/undefined-index…
Browse files Browse the repository at this point in the history
…-classes

Not all sidebar entries have the "classes" attribute
  • Loading branch information
MorrisJobke authored Jul 26, 2018
2 parents 03689a8 + 68ba96a commit 6514bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/templates/appnavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php
* @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']) ?>"
Expand Down

0 comments on commit 6514bf1

Please sign in to comment.