Commit 4f279caf authored by salvis's avatar salvis

#2276445 by Bastlynn: Avoid a notice when a comment pending for notification has been deleted.

parent 5fbfdeb5
......@@ -4,6 +4,7 @@ CHANGELOG for Forum Access for Drupal 7
forum_access 7.x-1.x-dev:
Bug fixed:
- #2276445 by Bastlynn: Avoid a notice when a comment pending for notification has been deleted.
- #2147183 by sadashiv: Notices in user_role_delete() when upgrading from D6 to D7.
- #2005352 by EAnushan: Avoid trashing the saved tid when another module calls menu_get_item() with a different $path.
- #1849288: Clean up the helpful information for Content Access.
......
......@@ -111,6 +111,9 @@ function _forum_access_comment_access_callback($comment, $op) {
if (is_numeric($comment)) {
$comment = comment_load($comment);
if (empty($comment)) {
return FALSE;
}
}
$node = node_load($comment->nid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment