catch misconfigured exports
authorivan <ivan>
Wed, 24 Mar 2004 15:38:48 +0000 (15:38 +0000)
committerivan <ivan>
Wed, 24 Mar 2004 15:38:48 +0000 (15:38 +0000)
httemplate/edit/part_export.cgi

index 4d0c739..b3d42bd 100644 (file)
@@ -46,6 +46,8 @@ my $widget = new HTML::Widgets::SelectLayers(
 
     foreach my $option ( keys %{$exports->{$layer}{options}} ) {
       my $optinfo = $exports->{$layer}{options}{$option};
+      die "Retreived non-ref export info option from $layer export: $optinfo"
+        unless ref($optinfo);
       my $label = $optinfo->{label};
       my $type = defined($optinfo->{type}) ? $optinfo->{type} : 'text';
       my $value = $cgi->param($option)