stable too
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@677 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
6e8b618c8d
commit
04816a9052
@ -65,9 +65,13 @@ class ReportImageTheme extends Themelet {
|
|||||||
global $database;
|
global $database;
|
||||||
|
|
||||||
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>" . 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