diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-03 12:14:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 12:14:28 +0100 |
commit | b33ceb6fdd7a9458ba2d8730b401271eb640822d (patch) | |
tree | 88773bb64938ddbc2dd7f41ca883b20781116544 /apps | |
parent | e11197bc4872f2ada4740736969f4c96e24ea229 (diff) | |
parent | 6920e609c02814d03a5dc83792de12d05f1da854 (diff) | |
download | nextcloud-server-b33ceb6fdd7a9458ba2d8730b401271eb640822d.tar.gz nextcloud-server-b33ceb6fdd7a9458ba2d8730b401271eb640822d.zip |
Merge pull request #1915 from nextcloud/downstream-26398
Add using casing check/fix for initMountPoints
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/Command/TransferOwnership.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/files/lib/Command/TransferOwnership.php b/apps/files/lib/Command/TransferOwnership.php index 742948b7ac3..3b51e4a9e6d 100644 --- a/apps/files/lib/Command/TransferOwnership.php +++ b/apps/files/lib/Command/TransferOwnership.php @@ -91,23 +91,21 @@ class TransferOwnership extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { - $this->sourceUser = $input->getArgument('source-user'); - $this->destinationUser = $input->getArgument('destination-user'); - $source = $this->userManager->get($this->sourceUser); - $destination = $this->userManager->get($this->destinationUser); + $sourceUserObject = $this->userManager->get($input->getArgument('source-user')); + $destinationUserObject = $this->userManager->get($input->getArgument('destination-user')); - if (!$source instanceof IUser) { + if (!$sourceUserObject instanceof IUser) { $output->writeln("<error>Unknown source user $this->sourceUser</error>"); return; } - if (!$destination instanceof IUser) { + if (!$destinationUserObject instanceof IUser) { $output->writeln("<error>Unknown destination user $this->destinationUser</error>"); return; } - $this->sourceUser = $source->getUID(); - $this->destinationUser = $destination->getUID(); + $this->sourceUser = $sourceUserObject->getUID(); + $this->destinationUser = $destinationUserObject->getUID(); // target user has to be ready if (!\OC::$server->getEncryptionManager()->isReadyForUser($this->destinationUser)) { |