return after error, don't handle the bad data
This commit is contained in:
parent
4530efc1e0
commit
85af28c0b5
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ class ViewImage extends SimpleExtension {
|
|||
|
||||
if(is_null($image)) {
|
||||
$this->theme->display_error($page, "Image not found", "No more images");
|
||||
return;
|
||||
}
|
||||
|
||||
$page->set_mode("redirect");
|
||||
|
|
Reference in a new issue