| 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 |
| 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 |
|
|