From b8a7ad098b5f0502fa5fe3b952a271b17e890ff8 Mon Sep 17 00:00:00 2001 From: James Clark Date: Fri, 20 Aug 2021 14:02:22 -0500 Subject: [PATCH] handle missing contact --- src/LEAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LEAccount.php b/src/LEAccount.php index 19e627f..285f8b1 100644 --- a/src/LEAccount.php +++ b/src/LEAccount.php @@ -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 = $post['body']['initialIp']; $this->createdAt = $post['body']['createdAt'];