Fixed some null errors

This commit is contained in:
Josef Citrine 2017-05-15 20:13:00 +01:00
parent 23acd16b64
commit 61e907ca37

View file

@ -439,6 +439,7 @@ class ImportPonify extends Command
$album->title = $albumName; $album->title = $albumName;
$album->user_id = $artist->id; $album->user_id = $artist->id;
$album->cover_id = $coverId; $album->cover_id = $coverId;
$album->description = "";
$album->save(); $album->save();
} }
@ -474,6 +475,8 @@ class ImportPonify extends Command
$track->is_downloadable = true; $track->is_downloadable = true;
$track->is_vocal = $isVocal; $track->is_vocal = $isVocal;
$track->license_id = 2; $track->license_id = 2;
$track->description = "";
$track->lyrics = "";
if (!is_null($parsedTags['comments'])) { if (!is_null($parsedTags['comments'])) {
$track->description = $parsedTags['comments']; $track->description = $parsedTags['comments'];