From 3e8aeec36a141961f31ae69d46a9e3cb123ce024 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 28 Feb 2024 08:20:16 +0100 Subject: [PATCH] fix: Use property_exists for SimpleXMLElement checks Signed-off-by: Christoph Wurst --- lib/Service/AutoConfig/IspDb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/AutoConfig/IspDb.php b/lib/Service/AutoConfig/IspDb.php index 5f07a71024..2d9576c551 100644 --- a/lib/Service/AutoConfig/IspDb.php +++ b/lib/Service/AutoConfig/IspDb.php @@ -75,7 +75,7 @@ private function queryUrl(string $url, Horde_Mail_Rfc822_Address $email): ?Confi libxml_use_internal_errors(true); $data = simplexml_load_string($xml); - if ($data === false || !isset($data->emailProvider)) { + if ($data === false || !property_exists($data, 'emailProvider')) { $errors = libxml_get_errors(); foreach ($errors as $error) { $this->logger->debug("ISP DB returned an erroneous XML: " . $error->message);