From be3634b7a541e2678a9b44e2b84d25781dff6470 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 Oct 2007 13:34:47 +0000 Subject: [PATCH] Ensure that all varaibles are set to initial value, when forcing config to reload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7555 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/class_config.inc b/include/class_config.inc index ce92a8b30..85c63b7be 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -68,6 +68,14 @@ class config { function check_and_reload() { if($this->filename != "" && filemtime($this->filename) != $this->last_modified){ + + $this->config_found= FALSE; + $this->tags= array(); + $this->level= 0; + $this->gpc= 0; + $this->section= ""; + $this->currentLocation= ""; + $this->parser = xml_parser_create(); xml_set_object($this->parser, $this); xml_set_element_handler($this->parser, "tag_open", "tag_close"); -- 2.30.2