Skip to content

Commit

Permalink
undefined so do it at assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed Jan 30, 2024
1 parent b6da23d commit c9f72a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Module/Playback/Localplay/Vlc/AmpacheVlc.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,13 @@ public function skip($song): bool
$listtracks = $this->get();
foreach($listtracks as $track) {
if($track['id'] == $song) {
$songid = $track['vlid'];
if ($this->_vlc->skip($track['vlid']) === null) {
return false;
}
break;
}
}

if ($this->_vlc->skip($songid) === null) {
return false;
}

return true;
}

Expand Down

0 comments on commit c9f72a7

Please sign in to comment.