host.class.php (fogproject-1.5.8) | : | host.class.php (fogproject-1.5.9) | ||
---|---|---|---|---|
skipping to change at line 1296 | skipping to change at line 1296 | |||
$taskName = '', | $taskName = '', | |||
$shutdown = false, | $shutdown = false, | |||
$debug = false, | $debug = false, | |||
$deploySnapins = false, | $deploySnapins = false, | |||
$isGroupTask = false, | $isGroupTask = false, | |||
$username = '', | $username = '', | |||
$passreset = '', | $passreset = '', | |||
$sessionjoin = false, | $sessionjoin = false, | |||
$wol = false | $wol = false | |||
) { | ) { | |||
$taskName .= ' - ' . $this->get('name'); | if (!$sessionjoin) { | |||
$taskName .= ' - ' . $this->get('name'); | ||||
} | ||||
try { | try { | |||
if (!$this->isValid()) { | if (!$this->isValid()) { | |||
throw new Exception(self::$foglang['HostNotValid']); | throw new Exception(self::$foglang['HostNotValid']); | |||
} | } | |||
$Task = $this->get('task'); | $Task = $this->get('task'); | |||
$TaskType = new TaskType($taskTypeID); | $TaskType = new TaskType($taskTypeID); | |||
if (!$TaskType->isValid()) { | if (!$TaskType->isValid()) { | |||
throw new Exception(self::$foglang['TaskTypeNotValid']); | throw new Exception(self::$foglang['TaskTypeNotValid']); | |||
} | } | |||
if ($Task->isValid()) { | if ($Task->isValid()) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added |