diff -rup vote_up_down/vud.module vote_up_down_new/vud.module --- vote_up_down/vud.module 2010-10-22 17:46:25.000000000 +1100 +++ vud.module 2010-10-26 11:37:04.039937002 +1100 @@ -215,7 +215,17 @@ function vud_ctools_plugin_directory($mo */ function vud_votingapi_results_alter(&$cache, $content_type, $content_id) { $vud_cache = _vud_get_standard_results($content_type, $content_id); - $cache = array_merge_recursive($cache, $vud_cache); + + // Don't just array_merge_recursive() the whole cache or numeric indexes + // will be reindexed, possibly breaking other modules votes. + // Instead, just merge the tag that we care about. + $tag = variable_get('vud_tag', 'vote'); + if (isset($cache[$tag]) && is_array($cache[$tag])) { + $cache[$tag] = array_merge_recursive($cache[$tag], $vud_cache[$tag]); + } + else { + $cache[$tag] = $vud_cache[$tag]; + } } /**