Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item13000: Fix "Use of uninitialized value $params{"num"} in lc..."
  • Loading branch information
Florian Schlichting committed Aug 27, 2014
1 parent 3e9d748 commit fe277c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Foswiki/Plugins/SyntaxHighlightingPlugin.pm
Expand Up @@ -130,9 +130,11 @@ sub _handleTag {
my %params = Foswiki::Func::extractParameters($1);
my $lang = lc $params{lang} || lc $params{_DEFAULT}; # language
my $num =
lc $params{num}
|| lc $params{number}
|| lc $params{numbered}; # start line number
$params{num}
|| $params{number}
|| $params{numbered}
|| 0; # start line number
$num = lc $num;
my $code = $2; # code to highlight

unless ( _definedLang($lang) ) {
Expand Down

0 comments on commit fe277c5

Please sign in to comment.