Remove undefined messages in case there is no icon

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1748 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-07-21 11:39:47 +00:00
parent c6204f2069
commit 2878d22548

View File

@@ -407,6 +407,7 @@ FW_AnswerCall($)
$icon = FW_dev2image($icon); $icon = FW_dev2image($icon);
#Debug "We do not have it and thus use $icon which is " . $FW_icons{$icon}; #Debug "We do not have it and thus use $icon which is " . $FW_icons{$icon};
$cachable = 0; $cachable = 0;
return 0 if(!$icon);
} }
$FW_icons{$icon} =~ m/(.*)\.(gif|jpg|png)/; $FW_icons{$icon} =~ m/(.*)\.(gif|jpg|png)/;
my ($file,$ext)= ($1,$2); my ($file,$ext)= ($1,$2);