Skip to content

Commit f750463

Browse files
committed
Fix: Undefined array key "initialIp"
1 parent 29b603f commit f750463

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
@@ -135,7 +135,7 @@ private function getLEAccountData()
135135
$this->key = $post['body']['key'];
136136
$this->contact = $post['body']['contact'];
137137
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
138-
$this->initialIp = $post['body']['initialIp'];
138+
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
139139
$this->createdAt = $post['body']['createdAt'];
140140
$this->status = $post['body']['status'];
141141
}
@@ -164,7 +164,7 @@ public function updateAccount($email)
164164
$this->key = $post['body']['key'];
165165
$this->contact = $post['body']['contact'];
166166
$this->agreement = isset($post['body']['agreement']) ? $post['body']['agreement'] : '';
167-
$this->initialIp = $post['body']['initialIp'];
167+
$this->initialIp = isset($post['body']['initialIp']) ? $post['body']['initialIp'] : '';
168168
$this->createdAt = $post['body']['createdAt'];
169169
$this->status = $post['body']['status'];
170170
if($this->log instanceof \Psr\Log\LoggerInterface)

0 commit comments

Comments
 (0)