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:
parent
782b57724f
commit
97b7deb1da
@ -34,7 +34,10 @@ class Featured extends Extension {
|
|||||||
global $config, $database;
|
global $config, $database;
|
||||||
$fid = $config->get_int("featured_id");
|
$fid = $config->get_int("featured_id");
|
||||||
if($fid > 0) {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user