Ignore:
Timestamp:
11/10/08 04:10:56 (4 years ago)
Author:
SvenDowideit
Message:

Item124: undefined ICONTOPIC causes crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/TWiki/Attach.pm

    r411 r508  
    195195    elsif ( $attr eq 'ICON' ) { 
    196196        my $picked = $this->{session}->mapToIconFileName($file); 
     197        if (!defined($picked) || ($picked eq '')) { 
     198            return ''; 
     199        } 
    197200        my $url = $this->{session}->getIconUrl( 0, $picked ); 
    198201        return CGI::img( 
Note: See TracChangeset for help on using the changeset viewer.