Index: /trunk/admin/history.php
===================================================================
--- /trunk/admin/history.php	(revision 8728)
+++ /trunk/admin/history.php	(revision 9808)
@@ -449,10 +449,18 @@
         );
 
-      $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'].')';
@@ -469,5 +477,5 @@
       $image_string = '';
 
-      switch ($page['search']['fields']['display_thumbnail'])
+      switch ($thumbnail_display)
       {
         case 'no_display_thumbnail':
