mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Join if block to preceding if chain
If getShareType() returns "email" it can not also return "user", "group" nor "link", so the if block can be added to the preceding if chain. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
a56fb75e69
commit
51e658da2a
1 changed files with 2 additions and 3 deletions
|
|
@ -731,10 +731,9 @@ class Manager implements IManager {
|
|||
$this->validateExpirationDate($share);
|
||||
$expirationDateUpdated = true;
|
||||
}
|
||||
}
|
||||
} else if ($share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL) {
|
||||
$plainTextPassword = null;
|
||||
|
||||
$plainTextPassword = null;
|
||||
if ($share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL) {
|
||||
// Password updated.
|
||||
if ($share->getPassword() !== $originalShare->getPassword()) {
|
||||
//Verify the password
|
||||
|
|
|
|||
Loading…
Reference in a new issue