Skip to content

Commit

Permalink
* Fix problem where we were stepping on '%' in message even when
Browse files Browse the repository at this point in the history
  there were no parameters submitted for substitution in sprintf.
  • Loading branch information
perusionmike committed Sep 12, 2015
1 parent fb1267d commit 576b762
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/SystemTag/warnings.coretag
Expand Up @@ -19,7 +19,13 @@ sub {

if($message) {
my $param = ref $opt->{param} ? $opt->{param} : [$opt->{param}];
push_warning($message, @$param);
if($opt->{param}) {
my $param = ref $opt->{param} ? $opt->{param} : [$opt->{param}];
push_warning($message, @$param);
}
else {
push_warning($message);
}
return unless $opt->{show};
}

Expand Down

0 comments on commit 576b762

Please sign in to comment.