lertify / lastfm-api

Last.fm PHP Api v2
7 stars 1 forks source link

Set Toptags get error when album has only one top tag #4

Closed anhlt closed 6 years ago

anhlt commented 11 years ago

in line

$Tag->setName( Util::toSting( $tagRow['name'] ) );
$Tag->setUrl( Util::toSting( $tagRow['url'] ) );

file lastfm\src\Lertify\Lastfm\Api\Album.php

If album has only one top tag. The foreach loop will loop through name and url of this tag, instead of loop through many tags. And we get error

Illegal string offset 'name'