Navigation Menu

Skip to content

Commit

Permalink
bug 1197 fixed: avoid warning message on history search when a photo …
Browse files Browse the repository at this point in the history
…was deleted

git-svn-id: http://piwigo.org/svn/trunk@9808 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Mar 21, 2011
1 parent b6c8d06 commit 0016569
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions admin/history.php
Expand Up @@ -448,12 +448,20 @@
)
);

$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'].')';

Expand All @@ -468,7 +476,7 @@

$image_string = '';

switch ($page['search']['fields']['display_thumbnail'])
switch ($thumbnail_display)
{
case 'no_display_thumbnail':
{
Expand Down

0 comments on commit 0016569

Please sign in to comment.