Skip to content

Commit 1996c0d

Browse files
committed
Fix: Undefined array key "contact"
1 parent f750463 commit 1996c0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/LEAccount.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function getLEAccountData()
133133
{
134134
$this->id = isset($post['body']['id']) ? $post['body']['id'] : '';
135135
$this->key = $post['body']['key'];
136-
$this->contact = $post['body']['contact'];
136+
$this->contact = isset($post['body']['contact']) ? $post['body']['contact'] : '';
137137
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
138138
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
139139
$this->createdAt = $post['body']['createdAt'];
@@ -162,7 +162,7 @@ public function updateAccount($email)
162162
{
163163
$this->id = isset($post['body']['id']) ? $post['body']['id'] : '';
164164
$this->key = $post['body']['key'];
165-
$this->contact = $post['body']['contact'];
165+
$this->contact = isset($post['body']['contact']) ? $post['body']['contact'] : '';
166166
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
167167
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
168168
$this->createdAt = $post['body']['createdAt'];

0 commit comments

Comments
 (0)