mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07: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->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'];
|
||||||
|
|
Loading…
Reference in a new issue