Skip to content

Commit

Permalink
Item13755: fixed variable $web declared twice
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Sep 25, 2015
1 parent 12ef2c7 commit 2e5b6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/DocumentViewerPlugin.pm
Expand Up @@ -48,8 +48,8 @@ sub _DOCUMENTVIEWER {
return
'<noautolink><span class="foswikiAlert">DocumentViewerPlugin error: Missing parameter to DOCUMENTVIEWER</span></noautolink>';
}
my $web = $params->{web} || $web;
my $topic = $params->{topic} || $topic;
$web = $params->{web} || $web;
$topic = $params->{topic} || $topic;

unless ( Foswiki::Func::attachmentExists( $web, $topic, $attachment ) ) {
return
Expand Down

0 comments on commit 2e5b6b9

Please sign in to comment.