series.pm: search for empty name or title

empty name or title search is enabled now to support series without
title
This commit is contained in:
Milan
2020-02-23 10:29:39 +01:00
parent da68850e1e
commit 775ff5f761

View File

@@ -54,12 +54,12 @@ sub get ($$) {
push @bind_values, $condition->{series_id};
}
if ( ( defined $condition->{series_name} ) && ( $condition->{series_name} ne '' ) ) {
if ( defined $condition->{series_name} ) {
push @conditions, 'series_name=?';
push @bind_values, $condition->{series_name};
}
if ( ( defined $condition->{title} ) && ( $condition->{title} ne '' ) ) {
if ( defined $condition->{title} ) {
push @conditions, 'title=?';
push @bind_values, $condition->{title};
}