2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

avoid "use of unitialized value" warning

git-svn-id: https://svn.fhem.de/fhem/trunk@2944 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-03-17 20:14:09 +00:00
parent a80926550a
commit 7568f2a5f2

View File

@ -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")
{