From: hickert Date: Mon, 15 Oct 2007 13:34:47 +0000 (+0000) Subject: Ensure that all varaibles are set to initial value, when forcing config to reload X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=be3634b7a541e2678a9b44e2b84d25781dff6470;p=gosa.git 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 --- 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");