From 1599b2ac017139bd1b9151ce81cefed6636135d0 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Tue, 9 Nov 2021 16:45:55 +0100 Subject: [PATCH] Do not cast for null case --- galette/lib/Galette/Controllers/Crud/TitlesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galette/lib/Galette/Controllers/Crud/TitlesController.php b/galette/lib/Galette/Controllers/Crud/TitlesController.php index 9988cf3ed..8d3a4ccfc 100644 --- a/galette/lib/Galette/Controllers/Crud/TitlesController.php +++ b/galette/lib/Galette/Controllers/Crud/TitlesController.php @@ -189,7 +189,7 @@ class TitlesController extends CrudController ->withHeader('Location', $this->cancelUri($this->getArgs($request))); } - $title = new Title((int)$id); + $title = new Title($id); $title->short = $post['short_label']; $title->long = $post['long_label']; $res = $title->store($this->zdb); -- 2.39.2