After installation of module, every time when user pages opening there is an alert - Undefined property: stdClass::$nid in votinglike_entity_view(). Even if voting tab is disabled for users pages.
Comments are disabled for users pages on my site.
I've found that this alert is because of code (line 53 of votinglime.module file):
$comment_node = node_load($entity->nid);
I think there should be some error handling if node_load($entity->nid) is null.
And I think that chkecks like those:
if (!variable_get('votinglike_user_enabled', TRUE)) {
Should be mayed before seting $comment_node variable.

BTW - module is grate, thanks for work =)
PS - sorry for bad English =)

Comments

sanglyb created an issue. See original summary.

quyenla’s picture

Version: 7.x-1.0 » 7.x-1.1
Status: Active » Fixed

The bug has been fixed in 7.x-1.1

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.