Skip to content

Commit

Permalink
Merge pull request symphonists#30 from sarahkemp/master
Browse files Browse the repository at this point in the history
check is_array before implode
  • Loading branch information
brendo committed May 29, 2014
2 parents 3795566 + da9520d commit 1fbdfc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/class.xmlimporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ function handleXMLError($errno, $errstr, $errfile, $errline, $context) {

if ($type == 'author') {
if ($field->get('allow_multiple_selection') == 'no') {
$value = array(implode('', $value));
if(is_array($value)){
$value = array(implode('', $value));
}
}
}

Expand Down

0 comments on commit 1fbdfc1

Please sign in to comment.