Skip to content

Commit

Permalink
Do not cast for null case
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Nov 9, 2021
1 parent 5680e97 commit 1599b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galette/lib/Galette/Controllers/Crud/TitlesController.php
Expand Up @@ -189,7 +189,7 @@ public function store(Request $request, Response $response, int $id = null): Res
->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);
Expand Down

0 comments on commit 1599b2a

Please sign in to comment.