From 980236ba591fc3b5216ee9bf554b04912977d9f9 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Thu, 16 Feb 2023 19:46:22 +0200 Subject: [PATCH] Update epp.php --- epp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epp.php b/epp.php index 0e8bef3..6f13518 100644 --- a/epp.php +++ b/epp.php @@ -1305,9 +1305,9 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract throw new exception('Error writing to the connection.'); } $r = simplexml_load_string($this->readResponse()); - if ($r->response->result->attributes()->code >= 2000) { - throw new exception($r->response->result->msg); - } + if (isset($r->response) && $r->response->result->attributes()->code >= 2000) { + throw new EppException($r->response->result->msg); + } return $r; }