From 2878d22548775a072f58b8eec527c1abc8f9c41c Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 21 Jul 2012 11:39:47 +0000 Subject: [PATCH] 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 --- fhem/webfrontend/pgm2/01_FHEMWEB.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/webfrontend/pgm2/01_FHEMWEB.pm b/fhem/webfrontend/pgm2/01_FHEMWEB.pm index e3421c714..8dea9086b 100755 --- a/fhem/webfrontend/pgm2/01_FHEMWEB.pm +++ b/fhem/webfrontend/pgm2/01_FHEMWEB.pm @@ -407,6 +407,7 @@ FW_AnswerCall($) $icon = FW_dev2image($icon); #Debug "We do not have it and thus use $icon which is " . $FW_icons{$icon}; $cachable = 0; + return 0 if(!$icon); } $FW_icons{$icon} =~ m/(.*)\.(gif|jpg|png)/; my ($file,$ext)= ($1,$2);