mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-25 02:46:15 +03:00
fix(spotify): deprecation notice (#3914)
8192: explode(): Passing null to parameter #2 ($string) of type string is deprecated in bridges/SpotifyBridge.php line 322
This commit is contained in:
parent
feb2a686d7
commit
4973aaadf6
1 changed files with 4 additions and 2 deletions
|
@ -317,8 +317,10 @@ class SpotifyBridge extends BridgeAbstract
|
|||
|
||||
private function getFirstEntry()
|
||||
{
|
||||
$uris = explode(',', $this->getInput('spotifyuri'));
|
||||
if (!is_null($this->getInput('spotifyuri')) && strpos($this->getInput('spotifyuri'), ',') === false) {
|
||||
$spotifyUri = $this->getInput('spotifyuri');
|
||||
|
||||
if (!is_null($spotifyUri) && strpos($spotifyUri, ',') === false) {
|
||||
$uris = explode(',', $spotifyUri);
|
||||
$firstUri = $uris[0];
|
||||
$type = explode(':', $firstUri)[1];
|
||||
$spotifyId = explode(':', $firstUri)[2];
|
||||
|
|
Loading…
Reference in a new issue