From 4b247f4477cc355479b62a9c3719c83e740d92a1 Mon Sep 17 00:00:00 2001 From: Milan Date: Sun, 11 Apr 2021 13:07:12 +0200 Subject: [PATCH] calendar.cgi: undef warning --- website/agenda/planung/calendar.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/agenda/planung/calendar.cgi b/website/agenda/planung/calendar.cgi index 4d432d6..6816b39 100755 --- a/website/agenda/planung/calendar.cgi +++ b/website/agenda/planung/calendar.cgi @@ -457,7 +457,7 @@ sub showCalendar { } # series dates - if ($params->{list} == 1){ + if ($params->{list} == 1 and defined $options->{series_id}){ my $series = series::get( $config, { @@ -849,7 +849,7 @@ sub showEventList { my $title = $event->{title}; $title .= ': ' . $event->{user_title} if $event->{user_title} ne ''; - + my $other_studio = $params->{studio_id} ne $event->{studio_id}; my $other_project = $params->{project_id} ne $event->{project_id}; $class.=' predecessor' if $other_project or $other_studio; @@ -861,6 +861,7 @@ sub showEventList { : 'playout'; my $playout_info = $file // $event->{upload_status} // ''; + my $studio_name = $event->{studio_name} // '-'; $out .= qq!! . qq!! @@ -879,7 +880,7 @@ sub showEventList { . qq!$playout! . qq!$archived! . qq!$event->{project_name} $other_studio! - . qq!$event->{studio_name} $other_studio! + . qq!$studio_name $other_studio! . qq!! . "\n"; } $i++;