Open MightyCreak opened 5 years ago
I happened to encounter a bug recently with Low Roar's album: "0".
Since empty("0") is true, there is a problem with this code in SongManager.php:
empty("0")
// Song album if (!empty($file_infos['comments']['album'])) { $metadata['album'] = end($file_infos['comments']['album']); } else { $metadata['album'] = 'Unknown album'; }
Do you think isset would be a better approach than empty?
isset
empty
Digging a little deeper, it seems that the issue is not from there, but could be coming from getID3 which probably has the same issue somewhere in their code...
I happened to encounter a bug recently with Low Roar's album: "0".
Since
empty("0")
is true, there is a problem with this code in SongManager.php:Do you think
isset
would be a better approach thanempty
?