just in case the featured image is deleted

git-svn-id: file:///home/shish/svn/shimmie2/trunk@875 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-05-20 19:20:58 +00:00
parent 782b57724f
commit 97b7deb1da

View file

@ -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);
}
}
}