Skip to content

Commit

Permalink
Fix: Undefined array key "initialIp"
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Dec 6, 2024
1 parent 29b603f commit f750463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LEAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function getLEAccountData()
$this->key = $post['body']['key'];
$this->contact = $post['body']['contact'];
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
$this->initialIp = $post['body']['initialIp'];
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
$this->createdAt = $post['body']['createdAt'];
$this->status = $post['body']['status'];
}
Expand Down Expand Up @@ -164,7 +164,7 @@ public function updateAccount($email)
$this->key = $post['body']['key'];
$this->contact = $post['body']['contact'];
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
$this->initialIp = $post['body']['initialIp'];
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
$this->createdAt = $post['body']['createdAt'];
$this->status = $post['body']['status'];
if($this->log instanceof \Psr\Log\LoggerInterface)
Expand Down

0 comments on commit f750463

Please sign in to comment.