From cfd1c34b5b3b4bffadeafb4d3d30a9bea42a7225 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: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2944 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/73_PRESENCE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/73_PRESENCE.pm b/FHEM/73_PRESENCE.pm index 6daf0f818..0c4135950 100755 --- a/FHEM/73_PRESENCE.pm +++ b/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") {