X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FID3FS%2FPath.pm;h=0559463a74692121e65c5dc5bf3827efc1030e66;hb=c55bea2400943794358f56ce12457a23971b055b;hp=9078720e2a5478c18c11a30a76af0b8e3b34e129;hpb=48e272547d3d0d88617c8c2d45f2a7485b6ba1b7;p=id3fs.git diff --git a/lib/ID3FS/Path.pm b/lib/ID3FS/Path.pm index 9078720..0559463 100644 --- a/lib/ID3FS/Path.pm +++ b/lib/ID3FS/Path.pm @@ -361,7 +361,7 @@ sub sort_elements if(ref($thing) eq "ID3FS::PathElement::Tag") { # Handle tag values by dropping parent - if(@input && ref($input[$#input]) eq "ID3FS::PathElement::Tag") + if(@input && ref($input[0]) eq "ID3FS::PathElement::Tag") { $thing=shift @input; } @@ -382,7 +382,7 @@ sub sort_elements { push(@output, pop(@opstack)); } -# print "STACK: ", join(', ', map { $_->{name}; } @output), "\n"; +# print "STACK: ", join(', ', map { $_->{name}; } @output), "\n"; return @output; }