From 152afe89ce00e781c95a228b1bbe5949740dab28 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sun, 17 Mar 2013 20:14:09 +0000 Subject: [PATCH] avoid "use of unitialized value" warning git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2944 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_PRESENCE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 6daf0f818..0c4135950 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -212,7 +212,7 @@ PRESENCE_Set($@) return "No Argument given" if(!defined($a[1])); - my $usage = ($hash->{MODE} ne "lan-bluetooth" ? "Unknown argument ".$a[1].", choose one of statusRequest " : undef); + my $usage = (defined($hash->{MODE}) and $hash->{MODE} ne "lan-bluetooth" ? "Unknown argument ".$a[1].", choose one of statusRequest " : undef); if($a[1] eq "statusRequest") {