Skip to content
Snippets Groups Projects
Commit 9320f790 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Use exists so we can set undef

parent 28c2f35b
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,8 @@ sub getHashChanges
foreach my $key (@{$keys}) {
# We can only do this if we have a new value
if (defined($new->{$key})) {
if (!defined($orig->{$key}) || $orig->{$key} ne $new->{$key}) {
if (exists($new->{$key})) {
if (!defined($orig->{$key}) || !defined($new->{$key}) || $orig->{$key} ne $new->{$key}) {
$changed->{$key} = $new->{$key};
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment