Permalink
Browse files

XML import: fix 'Creating default object from empty value'

  • Loading branch information...
dregad committed Oct 25, 2013
1 parent 681fe3c commit a16fbf42120b6c0fc60c8a677f23a42ced429afe
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/XmlImportExport/ImportXml/Issue.php
@@ -153,7 +153,7 @@ public function process( XMLreader $reader ) {
$reader->nodeType != XMLReader::END_ELEMENT ) ) {
if ( $reader->nodeType == XMLReader::ELEMENT ) {
if ($reader->localName == 'custom_field') {
- $i++;
+ $t_custom_fields[++$i] = new stdClass();
}
switch ( $reader->localName ) {
default:
@@ -174,7 +174,7 @@ public function process( XMLreader $reader ) {
$reader->nodeType != XMLReader::END_ELEMENT ) ) {
if ( $reader->nodeType == XMLReader::ELEMENT ) {
if ($reader->localName == 'bugnote') {
- $i++;
+ $t_bugnotes[++$i] = new stdClass();
}
switch ( $reader->localName ) {
case 'reporter':
@@ -207,7 +207,7 @@ public function process( XMLreader $reader ) {
$reader->nodeType != XMLReader::END_ELEMENT ) ) {
if ( $reader->nodeType == XMLReader::ELEMENT ) {
if ($reader->localName == 'attachment') {
- $i++;
+ $t_attachments[++$i] = new stdClass();
}
switch ( $reader->localName ) {
default:

0 comments on commit a16fbf4

Please sign in to comment.