From a61640475b9ee9140cc25b7d0a8ce12ed19ce1f2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 25 Apr 2017 13:33:34 +0200 Subject: get_state_power_with_params: support param = 0 --- lib/Kratos/DFADriver/Model.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kratos/DFADriver/Model.pm b/lib/Kratos/DFADriver/Model.pm index 9f4f3f4..b602e2c 100644 --- a/lib/Kratos/DFADriver/Model.pm +++ b/lib/Kratos/DFADriver/Model.pm @@ -540,7 +540,7 @@ sub get_state_power_with_params { my $hash_str = join(';', map { $param_values->{$_} } sort { $a cmp $b } keys %{$param_values} ); - if (not $hash_str) { + if ($hash_str eq q{}) { return $self->get_state_power($name); } -- cgit v1.2.3