From 1f1ac52ccc8b8db291050d2ffae7129f2949c297 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: svn://svn.code.sf.net/p/fhem/code/trunk@2933 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_PRESENCE.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 878c2ec30..6daf0f818 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/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);