Skip to content

Commit

Permalink
inside of if
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 9, 2023
1 parent 1500df8 commit 06580bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ function Invoke-CippWebhookProcessing {
$HTML = "$HTML" -f $Title, $IntroText, $ButtonUrl, $ButtonText, $AfterButtonText

Write-Host "Add IP and potential location to knownlocation db for this specific user"
$IP = $data.ClientIP.Split(':') | Select-Object -Last 1

if ($data.ClientIP) {
$IP = $data.ClientIP.Split(':') | Select-Object -Last 1
$LocationInfo = @{
RowKey = [string]$ip
PartitionKey = [string]$data.UserId
Expand Down

0 comments on commit 06580bb

Please sign in to comment.