diff --git a/contrib/report_image/theme.php b/contrib/report_image/theme.php index f93ef88d..0e8f92d7 100755 --- a/contrib/report_image/theme.php +++ b/contrib/report_image/theme.php @@ -66,7 +66,12 @@ class ReportImageTheme extends Themelet { if($config->get_bool('report_image_show_thumbs')) { $image_obj_reported = $database->get_image($image_id); - return "
" . $this->build_thumb_html($image_obj_reported); + if($image_obj_reported) { + return "
" . $this->build_thumb_html($image_obj_reported); + } + else { + return "
Image not found -- bug!"; + } } } @@ -95,4 +100,4 @@ class ReportImageTheme extends Themelet { } } -?> \ No newline at end of file +?>