Browse Source

Add track number fallback

Sunny 2 years ago
parent
commit
c14640620c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/release.php

+ 1 - 1
pages/release.php

@@ -39,7 +39,7 @@
       $duration = floor($duration / 60) . ":" . sprintf("%02d", $duration % 60);
 
       echo "<tr>";
-      echo "<td>" . $track->track_num . ".</td>";
+      echo "<td>" . ($track->track_num ?? 1) . ".</td>";
       echo "<td><a href=\"" . $link . "\">" . $track->title . "</a></td>";
       echo "<td>" . $duration . "</td>";
       echo "</tr>";