PRESENCE: fix log warning "use of uninitialized value ..." when using power set command without any argument. (Forum: #48499)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10686 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2016-01-31 15:46:23 +00:00
parent 5551730c41
commit 4326f3e5f0
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: PRESENCE: fix log warning "use of uninitialized value ..." when
using power set command without any argument.
- added: 60_allergy: Allergy forecast data for Germany
- feature: FB_CALLLIST: new attribute number-cmd to execute a FHEM command
when clicking on a external number within the calllist. Can be any

View File

@@ -285,7 +285,7 @@ PRESENCE_Set($@)
my %specials= (
"%NAME" => $name,
"%ADDRESS" => $hash->{ADDRESS},
"%ARGUMENT" => $a[2]
"%ARGUMENT" => (defined($a[2]) ? $a[2] : "")
);
$powerCmd= EvalSpecials($powerCmd, %specials);