# HG changeset patch # User casties # Date 1442593510 -7200 # Node ID bdf91a4a40ff6465b242b046f53618e51342bd32 # Parent ca1e02a2a9c4b906da42e7dca733677f7c4f4474 fix problem with newer relation feed modules. diff -r ca1e02a2a9c4 -r bdf91a4a40ff relation_processor/nodes.inc --- a/relation_processor/nodes.inc Wed Sep 09 17:32:42 2015 +0200 +++ b/relation_processor/nodes.inc Fri Sep 18 18:25:10 2015 +0200 @@ -113,18 +113,17 @@ * */ function relation_feeds_set_relation_type($source, $entity, $target, $terms, $mapping = array()) { + if (empty($terms)) { return; } - // don't Handle non-multiple values. + // assume array has only one term if (is_array($terms)) { - return; + $terms = $terms[0]; } - dpm("CHECK: TYPE"); - dpm($terms); $types=relation_get_types(array($terms));