don't operate on unset variables!
This commit is contained in:
@@ -1122,6 +1122,10 @@ Setup-LogFile
|
|||||||
Install-LocalTools
|
Install-LocalTools
|
||||||
|
|
||||||
# Check the RMM runtime variable to see if a billable user was specified, if so then set the $TimeAttributedToUser
|
# Check the RMM runtime variable to see if a billable user was specified, if so then set the $TimeAttributedToUser
|
||||||
If ( $TimeAttributedToUser.Trim().Length -ge 6 ) { $Global:TimeAttributedToUser = $TimeAttributedToUser.Trim().ToLower() }
|
If ( $TimeAttributedToUser ) {
|
||||||
|
If ( $TimeAttributedToUser.Trim().Length -ge 6 ) { $Global:TimeAttributedToUser = $TimeAttributedToUser.Trim().ToLower() }
|
||||||
|
}
|
||||||
# Check the RMM runtime variable to see if a ticket number was specified, if so then set the $TicketID
|
# Check the RMM runtime variable to see if a ticket number was specified, if so then set the $TicketID
|
||||||
If ( $TicketNumber.Trim().Length -gt 1 ) { $Global:TicketNumber = $TicketNumber.Trim() }
|
If ( $TicketNumber ) {
|
||||||
|
If ( $TicketNumber.Trim().Length -gt 1 ) { $Global:TicketNumber = $TicketNumber.Trim() }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user