Fixed import bug that existed when Aaronic Priesthood Companion was not found in db
[eq/.git] / import_ward_data
index d872fdc210d35dcb68964329b6a1165ed7d983f7..ef1c7eab0e862ed52fd2ce3dbcda3668b36ce3b6 100755 (executable)
@@ -254,7 +254,7 @@ sub update_eq_companionship_table
                        $sqlhashref2 = $sth2->fetchrow_hashref;
                        $aaronic = $sqlhashref2->{aaronic};
                        $elder = "NULL";
-                       if($aaronic eq "") { print "-W- Unable to find $elder_name in eq_elder or eq_aaronic tables\n"; }
+                       if($aaronic eq "") { print "-W- Unable to find $elder_name in eq_elder or eq_aaronic tables\n"; next; }
                    } 
                    $id = $hometeaching_data{$index}{'Comp ID'};
                    $district = $hometeaching_data{$index}{'HT District'};