after detecting an error, don't carry on processing the bad data...

This commit is contained in:
Shish 2012-01-19 15:23:44 +00:00
parent 7608107232
commit b8bdbd3533

View File

@ -89,6 +89,7 @@ class ViewImage extends SimpleExtension {
$image = Image::by_id($image_id);
if(is_null($image)) {
$this->theme->display_error($page, "Image not found", "Couldn't find image $image_id");
return;
}
if($event->page_matches("post/next")) {