holiday: get argument fixes for FHEMWEB detail view

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5334 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-03-26 23:14:05 +00:00
parent 2c8f6603dc
commit e9fc9a51d8

View File

@@ -196,6 +196,7 @@ holiday_Get($@)
{
my ($hash, @a) = @_;
shift(@a) if($a[1] && $a[1] eq "MM-DD");
return "argument is missing" if(int(@a) != 2);
my $arg;
@@ -211,7 +212,7 @@ holiday_Get($@)
} else {
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);