Should handle empty ports preferences (closes #39)

This commit is contained in:
Oliver Gorwits
2013-10-19 19:29:18 +01:00
parent 4526d63cfc
commit eefce06cbf
2 changed files with 2 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ hook 'before' => sub {
# override ports form defaults with cookie settings
my $cookie = cookie('nd_ports-form');
my $cookie = (cookie('nd_ports-form') || '');
my $cdata = url_params_mixed($cookie);
if ($cdata and ref {} eq ref $cdata and not param('reset')) {