diff --git a/contrib/featured/main.php b/contrib/featured/main.php index 2ae9f229..ac521a2d 100644 --- a/contrib/featured/main.php +++ b/contrib/featured/main.php @@ -34,7 +34,10 @@ class Featured extends Extension { global $config, $database; $fid = $config->get_int("featured_id"); if($fid > 0) { - $this->theme->display_featured($event->page, $database->get_image($fid)); + $image = $database->get_image($fid); + if(!is_null($image)) { + $this->theme->display_featured($event->page, $image); + } } }