Skip to content

Commit

Permalink
Fix: Undefined array key "contact"
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Jan 13, 2025
1 parent f750463 commit 1996c0d
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 @@ -133,7 +133,7 @@ private function getLEAccountData()
{
$this->id = isset($post['body']['id']) ? $post['body']['id'] : '';
$this->key = $post['body']['key'];
$this->contact = $post['body']['contact'];
$this->contact = isset($post['body']['contact']) ? $post['body']['contact'] : '';
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
$this->createdAt = $post['body']['createdAt'];
Expand Down Expand Up @@ -162,7 +162,7 @@ public function updateAccount($email)
{
$this->id = isset($post['body']['id']) ? $post['body']['id'] : '';
$this->key = $post['body']['key'];
$this->contact = $post['body']['contact'];
$this->contact = isset($post['body']['contact']) ? $post['body']['contact'] : '';
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
$this->createdAt = $post['body']['createdAt'];
Expand Down

0 comments on commit 1996c0d

Please sign in to comment.