From 602ad5129fbfd7283146a481fea49fadb8b91ff7 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 24 Feb 2015 23:38:08 +0000 Subject: [PATCH] 55_InfoPanel.pm: code cleanup git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8092 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/55_InfoPanel.pm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/FHEM/55_InfoPanel.pm b/FHEM/55_InfoPanel.pm index 855865255..f56065f4d 100644 --- a/FHEM/55_InfoPanel.pm +++ b/FHEM/55_InfoPanel.pm @@ -497,16 +497,13 @@ sub btIP_itemLine { sub btIP_itemLongpoll { my ($id,$x,$y,$text,%params)= @_; - my ($iconURL,$color); - unless (defined($text)) { - my ($iconName,undef,undef) = FW_dev2image($id); - $iconURL = FW_IconURL($iconName); - } else { - $color = substr($params{rgb},0,6); - } + my ($iconName,undef,undef) = FW_dev2image($id); + my $iconURL = FW_IconURL($iconName); + my $color = substr($params{rgb},0,6); my $output = "
\n"; + $output .= "$text\n" if defined($text); $output .= "\n" unless defined($text); $output .= "
\n";