I got an error when importing a BibTeX file adding my own taxonomy terms. It was an error in line 657 of the file PARSEENTRIES.PHP, if I remember well, about an undefined array in an array_merge function call.

The thing is that one of the arguments, $node['taxonomy'], was undefined. It can be easily solved adding an isSet check:

      if (!empty($terms)) {
        if(!isSet($node['taxonomy']))
          $node['taxonomy'] = Array();
      	$node['taxonomy'] = array_merge($terms,$node['taxonomy']);
      }

Replacing the old code

      if (!empty($terms))
      	$node['taxonomy'] = array_merge($terms,$node['taxonomy']);

Comments

rjerome’s picture

Status: Needs review » Fixed

Thanks

It's been committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.