| @@ 764-773 (lines=10) @@ | ||
| 761 | $permissions = $newPermissions; |
|
| 762 | } |
|
| 763 | ||
| 764 | if ($expireDate === '') { |
|
| 765 | $share->setExpirationDate(null); |
|
| 766 | } else if ($expireDate !== null) { |
|
| 767 | try { |
|
| 768 | $expireDate = $this->parseDate($expireDate); |
|
| 769 | } catch (\Exception $e) { |
|
| 770 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 771 | } |
|
| 772 | $share->setExpirationDate($expireDate); |
|
| 773 | } |
|
| 774 | ||
| 775 | if ($password === '') { |
|
| 776 | $share->setPassword(null); |
|
| @@ 795-804 (lines=10) @@ | ||
| 792 | } |
|
| 793 | } |
|
| 794 | ||
| 795 | if ($expireDate === '') { |
|
| 796 | $share->setExpirationDate(null); |
|
| 797 | } else if ($expireDate !== null) { |
|
| 798 | try { |
|
| 799 | $expireDate = $this->parseDate($expireDate); |
|
| 800 | } catch (\Exception $e) { |
|
| 801 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 802 | } |
|
| 803 | $share->setExpirationDate($expireDate); |
|
| 804 | } |
|
| 805 | ||
| 806 | } |
|
| 807 | ||