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