Merge pull request #3665 from nextcloud/fix-string-comparison-and-return-docs

Fix string comparison and return docs
This commit is contained in:
Morris Jobke 2017-03-01 13:04:42 -06:00 committed by GitHub
commit 7e32aafca6
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ class ProviderFactory implements IProviderFactory {
/**
* Create the federated share provider
*
* @return FederatedShareProvider
* @return ShareByMailProvider
*/
protected function getShareByMailProvider() {
if ($this->shareByMailProvider === null) {
@ -171,7 +171,7 @@ class ProviderFactory implements IProviderFactory {
$provider = $this->defaultShareProvider();
} else if ($id === 'ocFederatedSharing') {
$provider = $this->federatedShareProvider();
} else if ($id = 'ocMailShare') {
} else if ($id === 'ocMailShare') {
$provider = $this->getShareByMailProvider();
}