From b8895ca9cb76e8735b0b8194144a196ebef3d82f Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Fri, 7 May 2010 11:56:45 -0400 Subject: [PATCH] avoid uninitialized string warnings --- lib/DBIx/Class/ResultSet/RecursiveUpdate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm index 1293af4..6ab316e 100644 --- a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm +++ b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm @@ -214,10 +214,10 @@ sub _update_relation { } elsif( ! ref $sub_updates ){ $sub_object = $related_result->find( $sub_updates ) - unless (!$sub_updates && ($info->{attrs}{join_type} eq 'LEFT')); + unless (!$sub_updates && (exists $info->{attrs}{join_type} && $info->{attrs}{join_type} eq 'LEFT')); } $object->set_from_related( $name, $sub_object ) - unless (!$sub_object && !$sub_updates && ($info->{attrs}{join_type} eq 'LEFT')); + unless (!$sub_object && !$sub_updates && (exists $info->{attrs}{join_type} && $info->{attrs}{join_type} eq 'LEFT')); } } -- 2.45.2