Skip to content

Commit

Permalink
Fix #1161 Don't use workId if it is -1
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Sep 9, 2024
1 parent f6ef66f commit 153353b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Slim/Control/Queries.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4698,7 +4698,8 @@ sub worksQuery {
}
}

if ( defined $workID ) {
warn $workID;
if ( defined $workID && $workID != -1 ) {
push @{$w}, "works.id = ?";
push @{$p}, $workID;
}
Expand Down

0 comments on commit 153353b

Please sign in to comment.