Skip to content

Commit

Permalink
finessed empty extrrartists test
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Nov 30, 2024
1 parent 83b20ba commit 9aab431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private function prefillTracks() {

// see comment above about the artist name format
$artist = isset($_GET["artist"]) &&
isset($track->extraartists) &&
!empty($track->extraartists) &&
preg_match('/(\w+)(?:\s\(\d+\))?$/', $track->extraartists[0]->name, $matches) ? " ({$matches[1]})" : '';

$entry = [];
Expand Down

0 comments on commit 9aab431

Please sign in to comment.