]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix string comparison and return docs 3665/head
authorJoas Schilling <coding@schilljs.com>
Wed, 1 Mar 2017 12:42:41 +0000 (13:42 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 1 Mar 2017 12:42:41 +0000 (13:42 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Share20/ProviderFactory.php

index 3f277a852b30c594bf04b907656a6c49a9a98959..24f8ef1576e562fb54ea411b1f7c9aad5fe1348f 100644 (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();
                }