From b8bdbd3533fb917d7ee27fceb97d90bbc9b4986f Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 19 Jan 2012 15:23:44 +0000 Subject: [PATCH] after detecting an error, don't carry on processing the bad data... --- ext/view/main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/view/main.php b/ext/view/main.php index 56105a8e..01df30ee 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -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")) {