From 85af28c0b54e0225511bbb234b8644769a87e9ed Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 26 Jan 2012 17:16:57 +0000 Subject: [PATCH] return after error, don't handle 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 3115c2f9..617130f9 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -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");