From f75046307933214f2f033f24f59dd171464b217f Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Fri, 6 Dec 2024 12:19:29 +0000 Subject: [PATCH] Fix: Undefined array key "initialIp" --- src/LEAccount.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LEAccount.php b/src/LEAccount.php index 19e627f..464c88f 100644 --- a/src/LEAccount.php +++ b/src/LEAccount.php @@ -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']; } @@ -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)