summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-11-22 10:09:45 +0100
committerGitHub <noreply@github.com>2022-11-22 10:09:45 +0100
commit017b0f5f6390a58f9630e773f18ba08e549b61d1 (patch)
tree25a5268d2ba92174a84696f78904a6e29f0e5a84 /apps/workflowengine
parent942c439236caf7b262075df17efb2798841004da (diff)
parenteb8b008b1f12a8b24c5ccaa9796bbc316f1b5755 (diff)
downloadnextcloud-server-017b0f5f6390a58f9630e773f18ba08e549b61d1.tar.gz
nextcloud-server-017b0f5f6390a58f9630e773f18ba08e549b61d1.zip
Merge pull request #35162 from nextcloud/backport/35157/stable24
[stable24] Make sure to not pass null to DateTime::createFromFormat
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/lib/Check/RequestTime.php4
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);
}