From 9aab4319915cbaac56801f9553dfaf62e1c486b7 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Sat, 30 Nov 2024 13:22:26 +0000 Subject: [PATCH] finessed empty extrrartists test --- ui/Editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/Editor.php b/ui/Editor.php index 46eca607..6b7f9bed 100644 --- a/ui/Editor.php +++ b/ui/Editor.php @@ -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 = [];