mirror of
https://github.com/webmin/webmin.git
synced 2026-06-21 20:00:26 +01:00
Don't crash if there are no records of some type https://www.virtualmin.com/node/41676
This commit is contained in:
@@ -146,7 +146,7 @@ if (!$access{'ro'} && $type eq 'master') {
|
||||
push(@hcols, &ui_link("edit_recs.cgi?zone=$in{'zone'}&view=$in{'view'}&type=$in{'type'}&sort=1", ($in{'type'} eq "PTR" ? $text{'recs_addr'} : $text{'recs_name'}) ) );
|
||||
push(@hcols, &ui_link("edit_recs.cgi?zone=$in{'zone'}&view=$in{'view'}&type=$in{'type'}&sort=5", $text{'recs_type'}) ) if ($in{'type'} eq "ALL");
|
||||
push(@hcols, $text{'recs_ttl'});
|
||||
my @hmap = @{$hmap{$in{'type'}}};
|
||||
my @hmap = $hmap{$in{'type'}} ? @{$hmap{$in{'type'}}} : ( );
|
||||
foreach my $h (@hmap) {
|
||||
push(@hcols, &ui_link("edit_recs.cgi?zone=$in{'zone'}&view=$in{'view'}&type=$in{'type'}&sort=2",$h) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user