File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,14 @@ sub addLinkedProfileAddress {
63
63
my $session = shift ;
64
64
print " \t Adding linked profile addresses for existing users... " unless $quiet ;
65
65
66
- my $users = $session -> db-> buildArrayRef( q{
67
- select userId from users where userId not in ('1','3')
68
- } );
66
+ my $users = $session -> db-> read ( q{ select userId from users } );
69
67
70
- foreach my $userId (@$users ) {
68
+ use WebGUI::User;
69
+ use WebGUI::Shop::AddressBook;
70
+ while (my ($userId ) = $users -> array()) {
71
71
# check to see if there is user profile information available
72
+ next if $userId eq ' 1' or $userId eq ' 3' ;
73
+ last unless $userId ;
72
74
my $u = WebGUI::User-> new($session ,$userId );
73
75
# skip if user does not have any homeAddress fields filled in
74
76
next unless (
Original file line number Diff line number Diff line change @@ -433,14 +433,15 @@ sub addLinkedProfileAddress {
433
433
my $session = shift ;
434
434
print " \t Adding linked profile addresses for existing users... " unless $quiet ;
435
435
436
- my $users = $session -> db-> buildArrayRef( q{
437
- select userId from users where userId not in ('1','3')
438
- } );
436
+ my $users = $session -> db-> read ( q{ select userId from users } );
439
437
440
438
use WebGUI::User;
441
439
use WebGUI::Shop::AddressBook;
442
- foreach my $userId (@$users ) {
440
+
441
+ while (my ($userId ) = $users -> array()) {
443
442
# check to see if there is user profile information available
443
+ next if $userId eq ' 1' or $userId eq ' 3' ;
444
+ last unless $userId ;
444
445
my $u = WebGUI::User-> new($session ,$userId );
445
446
# skip if user does not have any homeAddress fields filled in
446
447
next unless (
You can’t perform that action at this time.
0 commit comments