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

Diff of /contributions/modules/user_stats/user_stats.module

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

revision 1.2.2.16.2.21, Sat Mar 14 00:26:56 2009 UTC revision 1.2.2.16.2.22, Fri Jun 26 07:22:37 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: user_stats.module,v 1.2.2.16.2.20 2009/02/23 22:21:05 liammcdermott Exp $  // $Id: user_stats.module,v 1.2.2.16.2.21 2009/03/14 00:26:56 liammcdermott Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 337  function user_stats_comment(&$a1, $op) { Line 337  function user_stats_comment(&$a1, $op) {
337    // check to see if comments should be counted at all.    // check to see if comments should be counted at all.
338    if (variable_get('user_stats_count_comments', TRUE)) {    if (variable_get('user_stats_count_comments', TRUE)) {
339      $comment = (object)$a1;      $comment = (object)$a1;
340        // Bug [#479394] - Anonymous User Comment causes 'UID is not a number'
341        // errors. User Stats always expects UIDs to be numeric.
342        if ($comment->uid == NULL) {
343          $comment->uid = 0;
344        }
345      $post_count_content_types = variable_get('user_stats_included_content_types', array());      $post_count_content_types = variable_get('user_stats_included_content_types', array());
346      $node = node_load(array('nid' => $comment->nid));      $node = node_load(array('nid' => $comment->nid));
347    

Legend:
Removed from v.1.2.2.16.2.21  
changed lines
  Added in v.1.2.2.16.2.22

  ViewVC Help
Powered by ViewVC 1.1.2