Skip to content

Commit

Permalink
Merge pull request #10408 from nextcloud/bugfix/noid/If_fav_fails_emp…
Browse files Browse the repository at this point in the history
…ty_array

Set the favorites to the empty array on failure
  • Loading branch information
MorrisJobke authored Jul 26, 2018
2 parents bf61067 + 309ae6d commit 03689a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
try {
$favElements = $this->activityHelper->getFavoriteFilePaths($this->userSession->getUser()->getUID());
} catch (\RuntimeException $e) {
$favElements['folders'] = null;
$favElements['folders'] = [];
}

$collapseClasses = '';
Expand Down

0 comments on commit 03689a8

Please sign in to comment.