Skip to content

Commit

Permalink
Fix two deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Dec 13, 2023
1 parent d4c0f93 commit c3f5be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions External/PHP-Scrobbler/Scrobbler.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ protected function generatePostData()
. 'o[' . $i . ']=' . $item['source'] . '&'
. 'r[' . $i . ']=' . $item['rating'] . '&'
. 'l[' . $i . ']=' . $item['trackDuration'] . '&'
. 'b[' . $i . ']=' . rawurlencode($item['album']) . '&'
. 'b[' . $i . ']=' . rawurlencode((string)$item['album']) . '&'
. 'n[' . $i . ']=' . $item['trackNumber'] . '&'
. 'm[' . $i . ']=' . $item['mbTrackId'] . '&';
$i++;
Expand All @@ -393,7 +393,7 @@ protected function generateNowPlayingPostData($artist, $track, $album = '', $tra
$body = 'a=' . rawurlencode((string)$artist) . '&'
. 't=' . rawurlencode((string)$track) . '&'
. 'l=' . $trackDuration . '&'
. 'b=' . rawurlencode($album) . '&'
. 'b=' . rawurlencode((string)$album) . '&'
. 'n=' . $trackNumber . '&'
. 'm=' . $mbTrackId;
return $body;
Expand Down

0 comments on commit c3f5be2

Please sign in to comment.