stricter nulls

This commit is contained in:
Shish
2023-06-27 17:45:35 +01:00
parent eca49bfc94
commit 8fb6fd5f54
18 changed files with 21 additions and 25 deletions

View File

@ -196,7 +196,7 @@ function redirect_to_next_image(Image $image): void
$target_image = $image->get_next($search_terms);
if ($target_image == null) {
if ($target_image === null) {
$redirect_target = referer_or(make_link("post/list"), ['post/view']);
} else {
$redirect_target = make_link("post/view/{$target_image->id}", null, $query);