mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #10408 from nextcloud/bugfix/noid/If_fav_fails_empty_array
Set the favorites to the empty array on failure
This commit is contained in:
commit
03689a8d94
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ class ViewController extends Controller {
|
|||
try {
|
||||
$favElements = $this->activityHelper->getFavoriteFilePaths($this->userSession->getUser()->getUID());
|
||||
} catch (\RuntimeException $e) {
|
||||
$favElements['folders'] = null;
|
||||
$favElements['folders'] = [];
|
||||
}
|
||||
|
||||
$collapseClasses = '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue