aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-26 16:05:34 +0200
committerGitHub <noreply@github.com>2018-07-26 16:05:34 +0200
commit6514bf1e18485bd5e94ea01c5e49ca2d74c3023b (patch)
tree3c58263a444110c906b4e181cdb73947f019ff9d /apps
parent03689a8d946f2034bbbbf51a357036ac73d126bf (diff)
parent68ba96a7d54e0a1dcf5cbc6830f6366117d0d816 (diff)
downloadnextcloud-server-6514bf1e18485bd5e94ea01c5e49ca2d74c3023b.tar.gz
nextcloud-server-6514bf1e18485bd5e94ea01c5e49ca2d74c3023b.zip
Merge pull request #10406 from nextcloud/bugfix/10405/undefined-index-classes
Not all sidebar entries have the "classes" attribute
Diffstat (limited to 'apps')
-rw-r--r--apps/files/templates/appnavigation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index 04bcc577001..a2361d92005 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -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']) ?>"