Final fix for Hour, Minute addition to addWMIDaily.

master
tophertimzen 2017-03-22 14:31:47 -04:00
parent e20fc3c07b
commit 669bc6c616
1 changed files with 8 additions and 8 deletions

View File

@ -433,15 +433,15 @@ sub remWMIOnStart {
}
sub addWMIDaily {
if (isAdmin($1)){
if ($5) {
if($6) {
$taskHour = $5;
$taskMinute = $6;
}
else {
berror($1, "Specify Hour, Minute");
}
if ($5 && $6) {
$taskHour = $5;
$taskMinute = $6;
}
else {
berror($1, "Specify Hour, Minute");
return;
}
if ($7) {
$payloadName = $7;
$taskName = $7;