| @@ 836-845 (lines=10) @@ | ||
| 833 | $permissions = $newPermissions; |
|
| 834 | } |
|
| 835 | ||
| 836 | if ($expireDate === '') { |
|
| 837 | $share->setExpirationDate(null); |
|
| 838 | } else if ($expireDate !== null) { |
|
| 839 | try { |
|
| 840 | $expireDate = $this->parseDate($expireDate); |
|
| 841 | } catch (\Exception $e) { |
|
| 842 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 843 | } |
|
| 844 | $share->setExpirationDate($expireDate); |
|
| 845 | } |
|
| 846 | ||
| 847 | if ($password === '') { |
|
| 848 | $share->setPassword(null); |
|
| @@ 877-886 (lines=10) @@ | ||
| 874 | } |
|
| 875 | } |
|
| 876 | ||
| 877 | if ($expireDate === '') { |
|
| 878 | $share->setExpirationDate(null); |
|
| 879 | } else if ($expireDate !== null) { |
|
| 880 | try { |
|
| 881 | $expireDate = $this->parseDate($expireDate); |
|
| 882 | } catch (\Exception $e) { |
|
| 883 | throw new OCSBadRequestException($e->getMessage(), $e); |
|
| 884 | } |
|
| 885 | $share->setExpirationDate($expireDate); |
|
| 886 | } |
|
| 887 | ||
| 888 | } |
|
| 889 | ||