aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost/Panel/Interface.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fripost/Panel/Interface.pm')
-rw-r--r--lib/Fripost/Panel/Interface.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Fripost/Panel/Interface.pm b/lib/Fripost/Panel/Interface.pm
index b2ad686..675c9ba 100644
--- a/lib/Fripost/Panel/Interface.pm
+++ b/lib/Fripost/Panel/Interface.pm
@@ -349,7 +349,8 @@ sub AddLocal : Runmode {
$template->param( transport => [
map { { item => $_
, name => ucfirst $_
- , selected => $q->param('transport') eq $_
+ , selected => (defined $q->param('transport') and
+ $q->param('transport') eq $_)
} }
(keys %Fripost::Schema::Local::list_commands)
] )
@@ -422,7 +423,8 @@ sub EditLocal : Runmode {
my $template = $self->load_tmpl( "edit-$t.html", cache => 1 );
$template->param( $self->userInfo
, localpart => encode_entities($localname)
- , domainpart => encode_entities($domainname) );
+ , domainpart => encode_entities($domainname)
+ , name => encode_entities($name) );
$template->param( &fill_HTML_template_from_query ($q) );
my $news = (defined $q->param('submit') or
(defined $q->param('a') and $q->param('a') eq 'delete'));