holiday: get argument fixes for FHEMWEB detail view

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5334 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-03-26 23:14:05 +00:00
parent 8015566ce7
commit b2ed5065a1

View File

@ -196,6 +196,7 @@ holiday_Get($@)
{ {
my ($hash, @a) = @_; my ($hash, @a) = @_;
shift(@a) if($a[1] && $a[1] eq "MM-DD");
return "argument is missing" if(int(@a) != 2); return "argument is missing" if(int(@a) != 2);
my $arg; my $arg;
@ -211,7 +212,7 @@ holiday_Get($@)
} else { } else {
return "unknown argument $a[1], ". return "unknown argument $a[1], ".
"choose one of yesterday today tomorrow MM-DD"; "choose one of yesterday:noArg today:noArg tomorrow:noArg MM-DD";
} }
return holiday_refresh($hash->{NAME}, $arg); return holiday_refresh($hash->{NAME}, $arg);