Skip to content
Browse files

* Add check to make sure tag won't die if hash reference is

  accidentally passed.
  • Loading branch information...
1 parent bd39e2c commit 62c91fbe863a9be53637428d4eb1eb6b78a59853 Mike Heins committed Jul 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/SystemTag/error.coretag
View
2 code/SystemTag/error.coretag
@@ -38,7 +38,7 @@ sub tag_error {
$opt->{keep} = 1 unless defined $opt->{keep};
my $error = delete $opt->{set};
if($opt->{param}) {
- $opt->{param} = [ $opt->{param} ] unless ref($opt->{param} );
+ $opt->{param} = [ $opt->{param} ] unless ref($opt->{param}) eq 'ARRAY';
$error = sprintf($error, @{$opt->{param}});
}
return set_error($error, $var, $opt);

0 comments on commit 62c91fb

Please sign in to comment.
Something went wrong with that request. Please try again.