Index: trunk/core/units/general/cat_dbitem_export.php =================================================================== diff -u -r3616 -r3629 --- trunk/core/units/general/cat_dbitem_export.php (.../cat_dbitem_export.php) (revision 3616) +++ trunk/core/units/general/cat_dbitem_export.php (.../cat_dbitem_export.php) (revision 3629) @@ -192,6 +192,9 @@ } else { $check_fields = $this->exportOptions['DuplicateCheckFields'] ? explode('|', substr($this->exportOptions['DuplicateCheckFields'], 1, -1)) : Array(); + foreach ($check_fields as $index => $check_field) { + // get field name from kMultilanguage formatter + } } if (!$check_fields) { @@ -322,6 +325,10 @@ if ($this->exportOptions['start_from'] == 0) // first export step { + if (!getArrayValue($this->exportOptions, 'IsBaseCategory')) { + $this->exportOptions['IsBaseCategory'] = 0; + } + if ($this->exportOptions['IsBaseCategory'] ) { $sql = 'SELECT CachedNavbar FROM '.TABLE_PREFIX.'Category @@ -358,7 +365,7 @@ $data_array = Array(); foreach ($this->exportFields as $export_field) { - $data_array = array_merge($data_array, $this->getFieldValue($export_field) ); + $data_array = array_merge($data_array, $this->getFieldValue($export_field) ); } $this->writeRecord($data_array); $records_exported++; @@ -752,7 +759,7 @@ FROM '.TABLE_PREFIX.'Category WHERE CategoryId = '.$category_id; $category_path = $this->Conn->GetOne($sql); - $category_path = explode('>', $category_path); + $category_path = $category_path ? explode('>', $category_path) : Array(); if ($this->exportOptions['IsBaseCategory']) { $i = $this->exportOptions['BaseLevel'];