diff --git a/contrib/report_image/theme.php b/contrib/report_image/theme.php index 825daac5..05fc1a22 100755 --- a/contrib/report_image/theme.php +++ b/contrib/report_image/theme.php @@ -65,9 +65,13 @@ class ReportImageTheme extends Themelet { global $database; if($config->get_bool('report_image_show_thumbs')) { - $image_obj_reported = $database->get_image($image_id); - return "
" . build_thumb_html($image_obj_reported); + if($image_obj_reported) { + return "
" . $this->build_thumb_html($image_obj_reported); + } + else { + return "
Image not found -- bug!"; + } } } @@ -96,4 +100,4 @@ class ReportImageTheme extends Themelet { } } -?> \ No newline at end of file +?>