Skip to content

Commit

Permalink
fixed issue checking old vs new keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ioncache committed Mar 27, 2012
1 parent 63c0237 commit b562520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DBIx/Class/AuditLog.pm
Expand Up @@ -49,7 +49,7 @@ sub update {
}

foreach my $key ( keys %new_data ) {
if ( $old_data{$key} eq $new_data{$key} ) {
if ( defined $old_data{$key} && $old_data{$key} eq $new_data{$key} ) {
delete $new_data{$key};
}
}
Expand Down

0 comments on commit b562520

Please sign in to comment.