Code

Ensure that all varaibles are set to initial value, when forcing config to reload
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 Oct 2007 13:34:47 +0000 (13:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 Oct 2007 13:34:47 +0000 (13:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7555 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index ce92a8b30d6d464461bfd44fab1c46f68297c03b..85c63b7be5f6bf0bd800624df2a8d7c531b7a3ac 100644 (file)
@@ -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");