From ac64d3dc2b80dee3e534e5315cc4590c271ccd76 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sun, 15 Nov 2015 12:42:14 +0000 Subject: [PATCH] =?UTF-8?q?75=5FmsgConfig.pm:=20fix=20=E2=80=9CUse=20of=20?= =?UTF-8?q?uninitialized=20value=20$priorityCat=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.fhem.de/fhem/trunk@9900 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/75_msgConfig.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/75_msgConfig.pm b/fhem/FHEM/75_msgConfig.pm index 43b64e8a9..ee37bdde9 100755 --- a/fhem/FHEM/75_msgConfig.pm +++ b/fhem/FHEM/75_msgConfig.pm @@ -321,9 +321,9 @@ sub msgConfig_Set($@) { $attr{$device}{comment} = "Auto-created by $name" if (!defined($attr{$device}{comment}) || $attr{$device}{comment} ne "Auto-created by $name"); $attr{$device}{devStateIcon} = '.*home:status_available@green .*absent:status_away_1@orange .*gone:status_standby .*none:control_building_empty .*gotosleep:status_night@green:asleep .*asleep:status_night@green .*awoken:status_available@green:home .*zu_Hause:user_available:absent .*außer_Haus:user_away:home .*verreist:user_ext_away:home .*bettfertig:scene_toilet:asleep .*schläft:scene_sleeping:awoken .*aufgestanden:scene_sleeping_alternat:home .*:user_unknown'; - $return .= "\nIf you would like this device to act as a global presence device for ALL msg commands, please adjust attribute msgResidentsDev at device $name to $device." + $return .= "\nIf you would like this device to act as an overall presence device for ALL msg commands, please adjust attribute msgResidentsDev at device $name to $device." if (defined($attr{$name}{msgResidentsDev}) && $attr{$name}{msgResidentsDev} ne $device); - $return .= "\nNext, set a device's msgResidentsDev attribute to '$device' (think of using 'userattr' to add 'msgResidentsDev' to the list of available attributes). \nIf you would like '$device' to act as a global presence device for ALL msg commands, sett attribute msgResidentsDev at device $name to $device." + $return .= "\nNext, set a device's msgResidentsDev attribute to '$device' (think of using 'userattr' to add 'msgResidentsDev' to the list of available attributes). \nIf you would like '$device' to act as an overall presence device for ALL msg commands, sett attribute msgResidentsDev at device $name to $device." if (!defined($attr{$name}{msgResidentsDev})); return $return; @@ -374,7 +374,7 @@ sub msgConfig_Get($@) { my $output = 0; foreach my $prio (@priorities) { - my $priorityCat; + my $priorityCat = ""; $priorityCat = $prio if ($prio ne "Normal"); my $cmd =