mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +01:00
Fixed HWC checkbox detection
This commit is contained in:
parent
337caa23a8
commit
41cbdb2e97
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class EditTrackCommand extends CommandBase
|
|||
if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-18 00:00:00")) {
|
||||
$playlist = Playlist::where('user_id', 22549)->first();
|
||||
|
||||
if ($this->_input['hwc_submit'] == true) {
|
||||
if ($this->_input['hwc_submit'] == 'true') {
|
||||
if (!$playlist->tracks()->get()->contains($track)) {
|
||||
$songIndex = $playlist->trackCount() + 1;
|
||||
$playlist->tracks()->attach($track, ['position' => $songIndex]);
|
||||
|
|
Loading…
Reference in a new issue