--- notify.old.module 2008-11-08 13:38:56.000000000 -0600 +++ notify.module 2008-11-11 06:49:27.000000000 -0600 @@ -422,10 +422,12 @@ function _notify_send() { } // Fetch new comments. - $cresult = db_query(db_rewrite_sql('SELECT c.nid, c.cid, c.subject, c.name FROM {comments} c INNER JOIN {node} n ON c.nid = n.nid WHERE c.status = %d AND c.timestamp > %d AND c.timestamp <= %d '. $reqntype . ' ORDER BY c.nid, c.timestamp', 'c'), COMMENT_PUBLISHED, $period, time()); $comments = array(); - while ($comment = db_fetch_object($cresult)) { - $comments[$comment->nid][] = $comment; + if (module_exists('comment')) { + $cresult = db_query(db_rewrite_sql('SELECT c.nid, c.cid, c.subject, c.name FROM {comments} c INNER JOIN {node} n ON c.nid = n.nid WHERE c.status = %d AND c.timestamp > %d AND c.timestamp <= %d '. $reqntype . ' ORDER BY c.nid, c.timestamp', 'c'), COMMENT_PUBLISHED, $period, time()); + while ($comment = db_fetch_object($cresult)) { + $comments[$comment->nid][] = $comment; + } } $node_body = '';