diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php index 3f277a852b..24f8ef1576 100644 --- a/lib/private/Share20/ProviderFactory.php +++ b/lib/private/Share20/ProviderFactory.php @@ -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(); }