02_RSS: fix for undefined attribute bg

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25063 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2021-10-11 10:55:33 +00:00
parent 9f47e6ab9c
commit acacb37999

View File

@ -932,7 +932,7 @@ sub RSS_returnIMG($$) {
# check if background directory is set
my $reason = "?"; # remember reason for undefined image
my $bgroot = AttrVal( $name, "bgroot", "");
my $bgdirs = AttrVal( $name, "bg", "undef" ); # comma-separated list of directories
my $bgdirs = AttrVal( $name, "bg", undef ); # comma-separated list of directories
if ( defined($bgdirs) ) {
my $bgnr; # item number