]> git.agnieray.net Git - galette.git/commitdiff
Do not cast for null case
authorJohan Cwiklinski <johan@x-tnd.be>
Tue, 9 Nov 2021 15:45:55 +0000 (16:45 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 9 Nov 2021 15:45:55 +0000 (16:45 +0100)
galette/lib/Galette/Controllers/Crud/TitlesController.php

index 9988cf3edf50d8676443f3c369d1d52d76566918..8d3a4ccfc924a3010c2f44420d536e3c6255c74a 100644 (file)
@@ -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);