Permalink
Browse files

Replace __toString with (string) cast in LastFMTopAlbums

  • Loading branch information...
1 parent c18d2f3 commit 6a9fd5d888feb298a6c9e3f4577ca5f598b595c3 @remiprev committed May 26, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Services/Lastfm.php
View
@@ -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,

0 comments on commit 6a9fd5d

Please sign in to comment.