| @@ 753-762 (lines=10) @@ | ||
| 750 | $permissions = $newPermissions; |
|
| 751 | } |
|
| 752 | ||
| 753 | if ($expireDate === '') { |
|
| 754 | $share->setExpirationDate(null); |
|
| 755 | } else if ($expireDate !== null) { |
|
| 756 | try { |
|
| 757 | $expireDate = $this->parseDate($expireDate); |
|
| 758 | } catch (\Exception $e) { |
|
| 759 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 760 | } |
|
| 761 | $share->setExpirationDate($expireDate); |
|
| 762 | } |
|
| 763 | ||
| 764 | if ($password === '') { |
|
| 765 | $share->setPassword(null); |
|
| @@ 784-793 (lines=10) @@ | ||
| 781 | } |
|
| 782 | } |
|
| 783 | ||
| 784 | if ($expireDate === '') { |
|
| 785 | $share->setExpirationDate(null); |
|
| 786 | } else if ($expireDate !== null) { |
|
| 787 | try { |
|
| 788 | $expireDate = $this->parseDate($expireDate); |
|
| 789 | } catch (\Exception $e) { |
|
| 790 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 791 | } |
|
| 792 | $share->setExpirationDate($expireDate); |
|
| 793 | } |
|
| 794 | ||
| 795 | } |
|
| 796 | ||