Skip to content

Commit

Permalink
fix default folder logic
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Mar 23, 2017
1 parent 1b8ccb9 commit 378ebfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getFolders()
$folder_types['user'] = 'root';
}

if (parent::allowMultiUser() && parent::enabledShareFolder()) {
if ((parent::allowMultiUser() && parent::enabledShareFolder()) || !parent::allowMultiUser()) {
$folder_types['share'] = 'shares';
}

Expand Down
2 changes: 1 addition & 1 deletion src/traits/LfmHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function getFormatedWorkingDir()
{
$working_dir = request('working_dir');

if (is_null($working_dir)) {
if (empty($working_dir)) {
$default_folder_type = 'share';
if ($this->allowMultiUser()) {
$default_folder_type = 'user';
Expand Down

0 comments on commit 378ebfb

Please sign in to comment.