diff --git a/plugins/views_content_cache/node.inc b/plugins/views_content_cache/node.inc
index 155c5c4..9ad7a63 100644
--- a/plugins/views_content_cache/node.inc
+++ b/plugins/views_content_cache/node.inc
@@ -16,7 +16,7 @@ class views_content_cache_key_node extends views_content_cache_key {
     if ($object_type === 'node') {
       return $object->type;
     }
-    elseif ($object_type === 'comment' && !empty($object['nid']) && ($node = node_load($object['nid']))) {
+    elseif ($object_type === 'comment' && !empty($object->nid) && ($node = node_load($object->nid))) {
       return $node->type;
     }
   }
