| @@ 776-785 (lines=10) @@ | ||
| 773 | $permissions = $newPermissions; |
|
| 774 | } |
|
| 775 | ||
| 776 | if ($expireDate === '') { |
|
| 777 | $share->setExpirationDate(null); |
|
| 778 | } else if ($expireDate !== null) { |
|
| 779 | try { |
|
| 780 | $expireDate = $this->parseDate($expireDate); |
|
| 781 | } catch (\Exception $e) { |
|
| 782 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 783 | } |
|
| 784 | $share->setExpirationDate($expireDate); |
|
| 785 | } |
|
| 786 | ||
| 787 | if ($password === '') { |
|
| 788 | $share->setPassword(null); |
|
| @@ 807-816 (lines=10) @@ | ||
| 804 | } |
|
| 805 | } |
|
| 806 | ||
| 807 | if ($expireDate === '') { |
|
| 808 | $share->setExpirationDate(null); |
|
| 809 | } else if ($expireDate !== null) { |
|
| 810 | try { |
|
| 811 | $expireDate = $this->parseDate($expireDate); |
|
| 812 | } catch (\Exception $e) { |
|
| 813 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 814 | } |
|
| 815 | $share->setExpirationDate($expireDate); |
|
| 816 | } |
|
| 817 | ||
| 818 | } |
|
| 819 | ||