Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

check definedness on some variables bfore a comparison

  • Loading branch information...
commit 6164c3ef634c40a1a46bf226f0b2a5ae8d9e3222 1 parent b562520
Mark Jubenville authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 lib/DBIx/Class/AuditLog.pm
5 lib/DBIx/Class/AuditLog.pm
@@ -49,7 +49,10 @@ sub update {
49 49 }
50 50
51 51 foreach my $key ( keys %new_data ) {
52   - if ( defined $old_data{$key} && $old_data{$key} eq $new_data{$key} ) {
  52 + if ( defined $old_data{$key}
  53 + && defined $new_data{$key}
  54 + && $old_data{$key} eq $new_data{$key} )
  55 + {
53 56 delete $new_data{$key};
54 57 }
55 58 }

0 comments on commit 6164c3e

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