return after error, don't handle the bad data
This commit is contained in:
parent
4530efc1e0
commit
85af28c0b5
@ -101,6 +101,7 @@ class ViewImage extends SimpleExtension {
|
|||||||
|
|
||||||
if(is_null($image)) {
|
if(is_null($image)) {
|
||||||
$this->theme->display_error($page, "Image not found", "No more images");
|
$this->theme->display_error($page, "Image not found", "No more images");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$page->set_mode("redirect");
|
$page->set_mode("redirect");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user