Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replace __toString with (string) cast in LastFMTopAlbums

  • Loading branch information...
commit 6a9fd5d888feb298a6c9e3f4577ca5f598b595c3 1 parent c18d2f3
@remiprev authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Services/Lastfm.php
View
4 lib/Services/Lastfm.php
@@ -234,7 +234,9 @@ public function getData() {
public function populateItemTemplate( &$item ) {
$images = new StdClass;
foreach( $item->image as $k=>$i ) {
- $images->{$i['size']->__toString()} = $i->__toString();
+ $key = (string) $i['size'];
+ $val = (string) $i;
+ $images->{$key} = $val;
}
return array(
'size' => $this->size,
Please sign in to comment.
Something went wrong with that request. Please try again.