Commit 55eeecf5 authored by greggles's avatar greggles

bug #761858 by vegantriathlete: E_ALL error: Attempting to access an object that has not been set

parent 83267286
......@@ -253,7 +253,7 @@ function comment_notify_comment_insert($comment) {
$mail = empty($comment->mail) ? $user->mail : $comment->mail;
$notify_hash = drupal_get_token($mail . $comment->cid);
if ($comment->notify) {
if (isset($comment->notify)) {
$notify = $comment->notify_type;
// If they don't have a preference, save one.
$current = comment_notify_get_user_comment_notify_preference($user->uid);
......
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