fix show series names

This commit is contained in:
Milan
2018-10-05 00:30:28 +02:00
parent 26ea7a8b83
commit 7c4580a0e0

View File

@@ -101,7 +101,7 @@ sub getProjects {
#mark last series_name entry of all non empty projects
if ( ( defined $series_names ) && ( scalar @$series_names > 0 ) ) {
$series_names->[-1]->{last} = 1;
$prev_series_names->[-1]->{last} = 0 if ( defined $prev_series_names ) && ( sclar @$prev_series_names > 0 );
$prev_series_names->[-1]->{last} = 0 if ( defined $prev_series_names ) && ( scalar @$prev_series_names > 0 );
$prev_series_names = $series_names;
}
push @$results, $project;
@@ -152,7 +152,7 @@ sub getSeriesNames {
}
my $where = '';
if ( @conds > 0 ) {
if ( scalar @conds > 0 ) {
$where = 'where ' . join( ' and ', @conds );
}