98_rssFeed: namespace fix for XML::simple

git-svn-id: https://svn.fhem.de/fhem/trunk@11510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
svnbenni 2016-05-24 11:47:58 +00:00
parent 9c45cdb11b
commit e8cd3fa6bd

View File

@ -20,7 +20,7 @@ use Encode qw(encode);
use IO::Uncompress::Gunzip qw(gunzip $GunzipError );
use XML::Simple;
use XML::Simple qw(:strict);
my $modulename='rssFeed'; #Module-Name = TYPE
@ -494,7 +494,7 @@ rssFeed_update(@)
$xml = new XML::Simple;
rssFeed_Log3 $name,5,'Trying to convert xml to array...';
eval {$nachrichten=$xml->XMLin($response, ForceArray => ['item']);};
eval {$nachrichten=$xml->XMLin($response,KeyAttr => {}, ForceArray => ['item']);};
if($@) {
rssFeed_Log3 $name,3,"ERROR can't convert feed response" if($@);
rssFeed_Log3 $name,4,"$@";