Fix string comparison and return docs

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-03-01 13:42:41 +01:00
parent f0389fdcb6
commit 3516c52271
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
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();
}