--- trunk/html/swish.cgi 2004/01/29 18:25:55 60
+++ trunk/html/swish.cgi 2004/02/06 13:27:51 62
@@ -20,6 +20,7 @@
my $from_utf8 = Text::Iconv->new('UTF8', $config->{charset});
sub x {
+ return if (! defined $_[0]);
return $from_utf8->convert($_[0]);
}
@@ -71,7 +72,7 @@
$path_label{$_->{limit}} = x($_->{content});
}
-my @properties = split(/\s+/,x($config->{properties}));
+my @properties = split(/\s+/,x($config->{properties})) if ($config->{properties});
if ($config->{charset}) {
print header(-charset=>x($config->{charset}));