diff --git a/synchronizer.php b/synchronizer.php index 0702e86..5fb8ac2 100755 --- a/synchronizer.php +++ b/synchronizer.php @@ -253,12 +253,12 @@ private static function get_translated_connection_ids(&$connection) { $connectionIds = array(); foreach($tuples as $tuple) { - $connectionIds += p2p_get_connections($connection->p2p_type, array( + $connectionIds = array_merge($connectionIds, p2p_get_connections($connection->p2p_type, array( 'direction' => 'from', 'from' => $tuple['from'], 'to' => $tuple['to'], 'fields' => 'p2p_id' - )); + ))); } return array_unique($connectionIds);