summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-04-25 13:33:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-04-25 13:33:34 +0200
commita61640475b9ee9140cc25b7d0a8ce12ed19ce1f2 (patch)
treeeaf689059958e74b9b992c83dbbc91529ac6f498 /lib
parentd5ee843dc7b061a3aed0f9d22615442f9228a28b (diff)
get_state_power_with_params: support param = 0
Diffstat (limited to 'lib')
-rw-r--r--lib/Kratos/DFADriver/Model.pm2
1 files changed, 1 insertions, 1 deletions
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);
}