Cannot use object of type stdClass as array in sites/all/modules/views_content_cache/plugins/views_content_cache/node.inc on line 19
I think
elseif ($object_type === 'comment' && !empty($object['nid']) && ($node = node_load($object['nid']))) {
should be
elseif ($object_type === 'comment' && !empty($object->nid) && ($node = node_load($object->nid))) {
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | views_content_cache-comment-object-fix-1472730.patch | 615 bytes | mstef |
Comments
Comment #1
Roulion commentedI tried this patch and it's OK
Comment #2
mstef commentedLooks good to me -- here's an actual patch for it.
Comment #3
steven jones commentedThanks very much for the patch, I've added it to the 7.x-3.x branch.