return after error, don't handle the bad data

This commit is contained in:
Shish 2012-01-26 17:16:57 +00:00
parent 4530efc1e0
commit 85af28c0b5

View file

@ -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");