From 746c9076d4e4d9d57ba9ec0a63e5576b09e1ad10 Mon Sep 17 00:00:00 2001 From: Jean-Yves Gaulier Date: Fri, 7 Feb 2020 19:34:30 +0100 Subject: [PATCH] fix malformed sql --- lib/Alchemy/Phrasea/Model/Manipulator/TokenManipulator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Model/Manipulator/TokenManipulator.php b/lib/Alchemy/Phrasea/Model/Manipulator/TokenManipulator.php index c2e6786fe4..e727f8dada 100644 --- a/lib/Alchemy/Phrasea/Model/Manipulator/TokenManipulator.php +++ b/lib/Alchemy/Phrasea/Model/Manipulator/TokenManipulator.php @@ -84,7 +84,7 @@ class TokenManipulator implements ManipulatorInterface ':data' => $data, ':created' => $now, ':updated' => $now, - ':expiration' => $expiration + ':expiration' => ($expiration === null ? null : $expiration->format('Y-m-d H:i:s')) ]; for($try=0; $try<1024; $try++) { $stmtParms['value'] = $this->random->generateString(32, self::LETTERS_AND_NUMBERS);