From c1c2e2d2ff18abf71a6bb154a0859e659f22c5e7 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jun 2008 09:47:02 +0000 Subject: [PATCH] Updated gosaSupportDaemon -Also extract in-tag attributes while parsing SI answers. eg. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11393 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 8e5704293..6c1fd8960 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -827,6 +827,13 @@ class gosaSupportDaemon } if ($xml_elem['type'] == 'complete') { + $start_level = 1; + $test2 = &$params; + while($start_level < $xml_elem['level']) { + $test2 = &$test2[$level[$start_level]]; + $start_level++; + } + /* Save tag attributes too. e.g. */ @@ -836,12 +843,6 @@ class gosaSupportDaemon } } - $start_level = 1; - $test2 = &$params; - while($start_level < $xml_elem['level']) { - $test2 = &$test2[$level[$start_level]]; - $start_level++; - } if(!isset($test2[$xml_elem['tag']])){ if(isset($xml_elem['value'])){ $test2[$xml_elem['tag']] = $xml_elem['value']; -- 2.30.2