Skip to content

Commit 03689a8

Browse files
authored
Merge pull request #10408 from nextcloud/bugfix/noid/If_fav_fails_empty_array
Set the favorites to the empty array on failure
2 parents bf61067 + 309ae6d commit 03689a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/lib/Controller/ViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
162162
try {
163163
$favElements = $this->activityHelper->getFavoriteFilePaths($this->userSession->getUser()->getUID());
164164
} catch (\RuntimeException $e) {
165-
$favElements['folders'] = null;
165+
$favElements['folders'] = [];
166166
}
167167

168168
$collapseClasses = '';

0 commit comments

Comments
 (0)