Fix typo in SMB_OC

This commit is contained in:
Robin McCorkell 2015-09-03 09:39:14 +01:00
parent 0b97a05e7b
commit e33d7b34fa
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}