/[drupal]/contributions/modules/notify/notify.module
ViewVC logotype

Diff of /contributions/modules/notify/notify.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 2.76, Tue Jun 23 23:21:05 2009 UTC revision 2.77, Tue Jun 23 23:31:12 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: notify.module,v 2.75 2009/03/13 02:32:27 matt2000 Exp $  // $Id: notify.module,v 2.76 2009/06/23 23:21:05 matt2000 Exp $
3    
4  define('NOTIFY_NODE_TYPE', 'notify_node_type_');  define('NOTIFY_NODE_TYPE', 'notify_node_type_');
5    
# Line 453  function _notify_send() { Line 453  function _notify_send() {
453      }      }
454    
455      // Fetch new comments.      // 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());  
456      $comments = array();      $comments = array();
457      while ($comment = db_fetch_object($cresult)) {      if (module_exists('comment')) {
458        $comments[$comment->nid][] = $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());
459            while ($comment = db_fetch_object($cresult)) {
460              $comments[$comment->nid][] = $comment;
461            }
462      }      }
463    
464      $node_body = '';      $node_body = '';

Legend:
Removed from v.2.76  
changed lines
  Added in v.2.77

  ViewVC Help
Powered by ViewVC 1.1.2