summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/backend/smb_oc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/backend/smb_oc.php b/apps/files_external/lib/backend/smb_oc.php
index 67fa8ffb2c4..3621682fb8f 100644
--- a/apps/files_external/lib/backend/smb_oc.php
+++ b/apps/files_external/lib/backend/smb_oc.php
@@ -58,9 +58,9 @@ class SMB_OC extends Backend {
}
public function manipulateStorageConfig(StorageConfig &$storage) {
- $username_as_share = ($storage->getBackendOption('username_as_share') === 'true');
+ $username_as_share = ($storage->getBackendOption('username_as_share') === true);
- if ($this->username_as_share) {
+ if ($username_as_share) {
$share = '/' . $storage->getBackendOption('user');
$storage->setBackendOption('share', $share);
}