From b11aad943671e73aebd218b9d78bc9c3e58f9900 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sat, 16 Mar 2013 20:09:05 +0000 Subject: [PATCH] exit SetFn when no argument is given git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2933 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/73_PRESENCE.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FHEM/73_PRESENCE.pm b/FHEM/73_PRESENCE.pm index 878c2ec30..6daf0f818 100755 --- a/FHEM/73_PRESENCE.pm +++ b/FHEM/73_PRESENCE.pm @@ -209,6 +209,8 @@ sub PRESENCE_Set($@) { my ($hash, @a) = @_; + + return "No Argument given" if(!defined($a[1])); my $usage = ($hash->{MODE} ne "lan-bluetooth" ? "Unknown argument ".$a[1].", choose one of statusRequest " : undef);