diff --git a/plus1.module b/plus1.module index 88c00a1..48e2b62 100644 --- a/plus1.module +++ b/plus1.module @@ -145,7 +145,7 @@ function plus1_vote($nid) { $node_type = db_select('node','n')->fields('n', array('type'))->condition('nid', $nid)->execute()->fetchObject(); $votes[] = array( 'entity_id' => $nid, - 'entity_type' => $node_type->type, + 'entity_type' => 'node', 'value_type' => 'points', 'value' => 1, );