From 04816a905258cb029e204630e5c087580498f5c7 Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 30 Dec 2007 12:19:41 +0000 Subject: [PATCH] stable too git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@677 7f39781d-f577-437e-ae19-be835c7a54ca --- contrib/report_image/theme.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 +?>