tags + patch thanks
Hiya, As suggested in the error message (Maybe you should just omit the defined()?), removing it seems to fix this. Removing brackets would end in a different error. Please find patch attached. Regards, Alberto -- Alberto Gonzalez Iniesta | Formación, consultoría y soporte técnico mailto/sip: a...@inittab.org | en GNU/Linux y software libre Encrypted mail preferred | http://inittab.com Key fingerprint = 5347 CBD8 3E30 A9EB 4D7D 4BF2 009B 3375 6B9A AA55
--- XMLhelper.pm.orig 2016-07-22 17:38:11.631804901 +0200 +++ XMLhelper.pm 2016-07-22 17:37:12.131626030 +0200 @@ -359,7 +359,7 @@ print OUT " </smartplaylist>\n"; } elsif(my $phr = get_plpref($current_plname)) { #plprefs found.. - if (defined(@{$XDAT->{playlists}->{data}->{$current_plname}})) { #the playlist is not empty + if (@{$XDAT->{playlists}->{data}->{$current_plname}}) { #the playlist is not empty print OUT "\n ".mkfile({playlist=>$phr}, {return=>1,noend=>1})."\n"; foreach(@{$XDAT->{playlists}->{data}->{$current_plname}}) { print OUT " $_\n";