diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-14 16:23:50 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-14 16:23:50 +0100 |
commit | 9ba9f9a7dcd7654336fa714cbd178f6a2c1710a8 (patch) | |
tree | ea38b76ffad8bf87890cb6325db30869179f5914 /apps/workflowengine | |
parent | ea377578ad50809c13e792acfa2bc1bd6b94df24 (diff) | |
download | nextcloud-server-9ba9f9a7dcd7654336fa714cbd178f6a2c1710a8.tar.gz nextcloud-server-9ba9f9a7dcd7654336fa714cbd178f6a2c1710a8.zip |
Make sure to not pass null to DateTime::createFromFormat
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/lib/Check/RequestTime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Check/RequestTime.php b/apps/workflowengine/lib/Check/RequestTime.php index b7a2f725451..be28f8ead15 100644 --- a/apps/workflowengine/lib/Check/RequestTime.php +++ b/apps/workflowengine/lib/Check/RequestTime.php @@ -109,12 +109,12 @@ class RequestTime implements ICheck { } $values = json_decode($value, true); - $time1 = \DateTime::createFromFormat('H:i e', $values[0]); + $time1 = \DateTime::createFromFormat('H:i e', (string)$values[0]); if ($time1 === false) { throw new \UnexpectedValueException($this->l->t('The given start time is invalid'), 3); } - $time2 = \DateTime::createFromFormat('H:i e', $values[1]); + $time2 = \DateTime::createFromFormat('H:i e', (string)$values[1]); if ($time2 === false) { throw new \UnexpectedValueException($this->l->t('The given end time is invalid'), 4); } |