Changeset 402 for trunk


Ignore:
Timestamp:
10/04/12 13:38:42 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Oops.
Revert update to getZoneList() in r397; forgot the template gets
reused for reverse zones and the hash elements in the arrayref
myst have the same keys for both forward and reverse zones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r401 r402  
    22122212        ($args{offset} eq 'all' ? '' : " LIMIT $config{perpage}".
    22132213        " OFFSET ".$args{offset}*$config{perpage});
    2214 
    2215   my $ret = $dbh->selectall_arrayref($sql, { Slice => {} }, (@filterargs) );
    2216   return $ret;
     2214  my $sth = $dbh->prepare($sql);
     2215  $sth->execute(@filterargs);
     2216  my $rownum = 0;
     2217
     2218  while (my @data = $sth->fetchrow_array) {
     2219    my %row;
     2220    $row{domain_id} = $data[0];
     2221    $row{domain} = $data[1];
     2222    $row{status} = $data[2];
     2223    $row{group} = $data[3];
     2224    push @zonelist, \%row;
     2225  }
     2226
     2227  return \@zonelist;
    22172228} # end getZoneList()
    22182229
Note: See TracChangeset for help on using the changeset viewer.