Don't die on deleted images, fixes #252
git-svn-id: file:///home/shish/svn/shimmie2/trunk@676 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
70b3d791d8
commit
1f1987131d
@ -66,7 +66,12 @@ class ReportImageTheme extends Themelet {
|
|||||||
|
|
||||||
if($config->get_bool('report_image_show_thumbs')) {
|
if($config->get_bool('report_image_show_thumbs')) {
|
||||||
$image_obj_reported = $database->get_image($image_id);
|
$image_obj_reported = $database->get_image($image_id);
|
||||||
return "<br>" . $this->build_thumb_html($image_obj_reported);
|
if($image_obj_reported) {
|
||||||
|
return "<br>" . $this->build_thumb_html($image_obj_reported);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "<br>Image not found -- bug!";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user