Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.0-rc5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2009 at 13:42 UTC
Updated:
6 Mar 2009 at 03:30 UTC
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
Comment #1
rjerome commentedThanks
It's been committed.