Fixed import bug that existed when Aaronic Priesthood Companion was not found in db
authorAlan Jack Pippin <ajp@pippin.(none)>
Fri, 2 Jun 2006 03:44:50 +0000 (21:44 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Fri, 2 Jun 2006 03:44:50 +0000 (21:44 -0600)
because they haven't been ordained yet. This caused other Elders to be added instead.

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'};