mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
Fixed some null errors
This commit is contained in:
parent
23acd16b64
commit
61e907ca37
1 changed files with 69 additions and 66 deletions
|
@ -439,6 +439,7 @@ class ImportPonify extends Command
|
|||
$album->title = $albumName;
|
||||
$album->user_id = $artist->id;
|
||||
$album->cover_id = $coverId;
|
||||
$album->description = "";
|
||||
|
||||
$album->save();
|
||||
}
|
||||
|
@ -474,6 +475,8 @@ class ImportPonify extends Command
|
|||
$track->is_downloadable = true;
|
||||
$track->is_vocal = $isVocal;
|
||||
$track->license_id = 2;
|
||||
$track->description = "";
|
||||
$track->lyrics = "";
|
||||
|
||||
if (!is_null($parsedTags['comments'])) {
|
||||
$track->description = $parsedTags['comments'];
|
||||
|
|
Loading…
Reference in a new issue