Changeset 331
- Timestamp:
- 05/09/12 17:22:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r330 r331 2134 2134 # by definition, group 1 is the Root Of All Groups 2135 2135 my $sth = $dbh->prepare("SELECT group_id FROM groups WHERE NOT (group_id=1)". 2136 ($immed ne 'all' ? " AND parent_group_id=1" : '') );2136 ($immed ne 'all' ? " AND parent_group_id=1" : '')." ORDER BY group_name"); 2137 2137 $sth->execute; 2138 2138 while (my @this = $sth->fetchrow_array) { … … 2140 2140 } 2141 2141 } else { 2142 my $sth = $dbh->prepare("SELECT group_id FROM groups WHERE parent_group_id=? ");2142 my $sth = $dbh->prepare("SELECT group_id FROM groups WHERE parent_group_id=? ORDER BY group_name"); 2143 2143 $sth->execute($rootgroup); 2144 2144 return if $sth->rows == 0;
Note:
See TracChangeset
for help on using the changeset viewer.