aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/history.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/admin/history.php b/admin/history.php
index bcd812b5d..7549114b1 100644
--- a/admin/history.php
+++ b/admin/history.php
@@ -448,12 +448,20 @@ SELECT
)
);
- $element = array(
- 'id' => $line['image_id'],
- 'file' => $file_of_image[$line['image_id']],
- 'path' => $path_of_image[$line['image_id']],
- 'tn_ext' => $tn_ext_of_image[$line['image_id']],
- );
+ if (isset($file_of_image[$line['image_id']]))
+ {
+ $element = array(
+ 'id' => $line['image_id'],
+ 'file' => $file_of_image[$line['image_id']],
+ 'path' => $path_of_image[$line['image_id']],
+ 'tn_ext' => $tn_ext_of_image[$line['image_id']],
+ );
+ $thumbnail_display = $page['search']['fields']['display_thumbnail'];
+ }
+ else
+ {
+ $thumbnail_display = 'no_display_thumbnail';
+ }
$image_title = '('.$line['image_id'].')';
@@ -468,7 +476,7 @@ SELECT
$image_string = '';
- switch ($page['search']['fields']['display_thumbnail'])
+ switch ($thumbnail_display)
{
case 'no_display_thumbnail':
{