module config et role webmaster
[mtweb] / mw / app / data / modules / share / mw_data_out_config.php
index 173efbe..d5471cf 100644 (file)
@@ -10,7 +10,7 @@
           if(!isset($this->sxml)) $this->sxml = new sxml();
           $this->sxml->parse($this->buffer);
           $this->buffer = $this->sxml->data["config"][0];
-          if($this->buffer["subs"]) foreach($this->buffer["subs"] as $key => $value){
+          if(isset($this->buffer["subs"]) && $this->buffer["subs"]) foreach($this->buffer["subs"] as $key => $value){
             $config[$key] = array(
               "type" => $value[0]["attrs"]["type"],
               "default" => $value[0]["attrs"]["default"],