From 86adf646fc23c3bb94978328ba39a27653b0f876 Mon Sep 17 00:00:00 2001 From: jeph864 Date: Wed, 11 Dec 2024 17:50:32 +0100 Subject: [PATCH] Unset default offline status --- webservice/soap/classes/class.ilObjectXMLParser.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webservice/soap/classes/class.ilObjectXMLParser.php b/webservice/soap/classes/class.ilObjectXMLParser.php index a6c636026e0a..3245526799d5 100644 --- a/webservice/soap/classes/class.ilObjectXMLParser.php +++ b/webservice/soap/classes/class.ilObjectXMLParser.php @@ -9,6 +9,8 @@ * https://www.ilias.de * https://github.com/ILIAS-eLearning *****************************************************************************/ + + class ilObjectXMLParser extends ilSaxParser { public array $object_data = []; @@ -64,7 +66,10 @@ public function handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs) ) ); } - $this->addProperty('offline', $a_attribs['offline'] ?? true); + if (isset($a_attribs['offline'])) { + $this->addProperty('offline', $a_attribs['offline']); + } + break;