ajout d'un installeur en ligne
[mtweb] / mw / app / data / impl / xml / mw_xml_data_handler.php
index 446a264..6ed8206 100644 (file)
@@ -73,8 +73,8 @@
       return false;
     }
 
-    function add_data($data){
-      $index = $this->inc_index();
+    function add_data($data, $index = null){
+      if(!isset($index)) $index = $this->inc_index();
       if(isset($index)){
         if(is_array($data)) return $this->xml_data->add_data($this->data_path, $index, $data);
       }