From c9f72a77fa8cc914864d55f1fcd2c1b830204639 Mon Sep 17 00:00:00 2001 From: lachlan Date: Wed, 31 Jan 2024 09:32:08 +1000 Subject: [PATCH] undefined so do it at assignment --- src/Module/Playback/Localplay/Vlc/AmpacheVlc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php b/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php index 0434248e04..f21a03cb35 100644 --- a/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php +++ b/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php @@ -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; }