calendar.cgi: undef warning

This commit is contained in:
Milan
2021-04-11 13:07:12 +02:00
parent 873d546e13
commit 4b247f4477

View File

@@ -457,7 +457,7 @@ sub showCalendar {
} }
# series dates # series dates
if ($params->{list} == 1){ if ($params->{list} == 1 and defined $options->{series_id}){
my $series = series::get( my $series = series::get(
$config, $config,
{ {
@@ -849,7 +849,7 @@ sub showEventList {
my $title = $event->{title}; my $title = $event->{title};
$title .= ': ' . $event->{user_title} if $event->{user_title} ne ''; $title .= ': ' . $event->{user_title} if $event->{user_title} ne '';
my $other_studio = $params->{studio_id} ne $event->{studio_id}; my $other_studio = $params->{studio_id} ne $event->{studio_id};
my $other_project = $params->{project_id} ne $event->{project_id}; my $other_project = $params->{project_id} ne $event->{project_id};
$class.=' predecessor' if $other_project or $other_studio; $class.=' predecessor' if $other_project or $other_studio;
@@ -861,6 +861,7 @@ sub showEventList {
: 'playout'; : 'playout';
my $playout_info = $file // $event->{upload_status} // ''; my $playout_info = $file // $event->{upload_status} // '';
my $studio_name = $event->{studio_name} // '-';
$out .= $out .=
qq!<tr id="$id" class="$class" start="$event->{start}" >! qq!<tr id="$id" class="$class" start="$event->{start}" >!
. qq!<td class="day_of_year">! . qq!<td class="day_of_year">!
@@ -879,7 +880,7 @@ sub showEventList {
. qq!<td class="playout" title="$playout_info">$playout</td>! . qq!<td class="playout" title="$playout_info">$playout</td>!
. qq!<td class="archived">$archived</td>! . qq!<td class="archived">$archived</td>!
. qq!<td>$event->{project_name} $other_studio</td>! . qq!<td>$event->{project_name} $other_studio</td>!
. qq!<td>$event->{studio_name} $other_studio</td>! . qq!<td>$studio_name $other_studio</td>!
. qq!</tr>! . "\n"; . qq!</tr>! . "\n";
} }
$i++; $i++;