Index: notifications_content/notifications_content.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/notifications/notifications_content/notifications_content.module,v retrieving revision 1.4.2.9.2.36.2.14 diff -u -p -r1.4.2.9.2.36.2.14 notifications_content.module --- notifications_content/notifications_content.module 20 Oct 2009 10:48:11 -0000 1.4.2.9.2.36.2.14 +++ notifications_content/notifications_content.module 11 Nov 2009 21:58:23 -0000 @@ -754,8 +754,10 @@ function notifications_content_comment_l static $cache; if (!isset($cache[$cid])) { $comment = db_fetch_object(db_query('SELECT c.*, u.uid, u.name AS registered_name, u.data FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d', $cid)); - $comment = drupal_unpack($comment); - $comment->name = $comment->uid ? $comment->registered_name : $comment->name; + if ($comment) { + $comment = drupal_unpack($comment); + $comment->name = $comment->uid ? $comment->registered_name : $comment->name; + } $cache[$cid] = $comment; } return $cache[$cid];