summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/tracker.module18
-rw-r--r--modules/tracker/tracker.module18
2 files changed, 14 insertions, 22 deletions
diff --git a/modules/tracker.module b/modules/tracker.module
index 9b68752ae..a8cc7439d 100644
--- a/modules/tracker.module
+++ b/modules/tracker.module
@@ -52,19 +52,15 @@ function tracker_page($uid = 0) {
while ($node = db_fetch_object($result)) {
// Determine the number of comments:
- if (module_exist('comment')) {
- if ($all = comment_num_all($node->nid)) {
- $comments = $all;
-
- if ($new = comment_num_new($node->nid)) {
- $comments .= '<br />';
- $comments .= l(t('%num new', array('%num' => $new)), "node/$node->nid", NULL, NULL, 'new');
- }
+ $comments = 0;
+ if (module_exist('comment') && $all = comment_num_all($node->nid)) {
+ $comments = $all;
+
+ if ($new = comment_num_new($node->nid)) {
+ $comments .= '<br />';
+ $comments .= l(t('%num new', array('%num' => $new)), "node/$node->nid", NULL, NULL, 'new');
}
}
- else {
- $comments = 0;
- }
$rows[] = array(
ucfirst(node_invoke($node->type, 'node_name')),
diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module
index 9b68752ae..a8cc7439d 100644
--- a/modules/tracker/tracker.module
+++ b/modules/tracker/tracker.module
@@ -52,19 +52,15 @@ function tracker_page($uid = 0) {
while ($node = db_fetch_object($result)) {
// Determine the number of comments:
- if (module_exist('comment')) {
- if ($all = comment_num_all($node->nid)) {
- $comments = $all;
-
- if ($new = comment_num_new($node->nid)) {
- $comments .= '<br />';
- $comments .= l(t('%num new', array('%num' => $new)), "node/$node->nid", NULL, NULL, 'new');
- }
+ $comments = 0;
+ if (module_exist('comment') && $all = comment_num_all($node->nid)) {
+ $comments = $all;
+
+ if ($new = comment_num_new($node->nid)) {
+ $comments .= '<br />';
+ $comments .= l(t('%num new', array('%num' => $new)), "node/$node->nid", NULL, NULL, 'new');
}
}
- else {
- $comments = 0;
- }
$rows[] = array(
ucfirst(node_invoke($node->type, 'node_name')),