aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-26 15:05:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-07-26 15:05:00 +0200
commit68ba96a7d54e0a1dcf5cbc6830f6366117d0d816 (patch)
tree8eae637321a1ec25b07adaf4c12c4883afd1d1ca /apps
parentadcc061166ab86bd39b004bd85847320fdd2d525 (diff)
downloadnextcloud-server-68ba96a7d54e0a1dcf5cbc6830f6366117d0d816.tar.gz
nextcloud-server-68ba96a7d54e0a1dcf5cbc6830f6366117d0d816.zip
Not all sidebar entries have the "classes" attribute
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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']) ?>"