summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-10 01:44:28 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-10 01:44:28 +0000
commit856b6e1f408a0c5d8f8865f6b80a629e2f99948c (patch)
treefb63badadc3a9a606c3168eae83009bea219ae6a
parentb7be0bd1843990030d83a468426816a99337a216 (diff)
downloadbrdo-856b6e1f408a0c5d8f8865f6b80a629e2f99948c.tar.gz
brdo-856b6e1f408a0c5d8f8865f6b80a629e2f99948c.tar.bz2
- Patch #844892 by andypost: minor code style fixes.
-rw-r--r--modules/profile/profile.module2
-rw-r--r--modules/statistics/statistics.module2
-rw-r--r--modules/trigger/trigger.module2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 9960f2845..7f3094051 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -177,7 +177,7 @@ function profile_block_save($delta = '', $edit = array()) {
function profile_block_view($delta = '') {
if (user_access('access user profiles')) {
$output = '';
- if ((arg(0) == 'node') && is_numeric(arg(1)) && (arg(2) == NULL)) {
+ if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == NULL) {
$node = node_load(arg(1));
$account = user_load($node->uid);
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 859ca1e4e..db54ab49c 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -60,7 +60,7 @@ function statistics_exit() {
if (variable_get('statistics_count_content_views', 0)) {
// We are counting content views.
- if ((arg(0) == 'node') && is_numeric(arg(1)) && arg(2) == '') {
+ if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == NULL) {
// A node has been viewed, so update the node's counters.
db_merge('node_counter')
->key(array('nid' => arg(1)))
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index 91c36c65d..7a55e623e 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -467,7 +467,7 @@ function _trigger_normalize_user_context($type, $account) {
// If a single node is being viewed, return the node.
case 'node':
// If we are viewing an individual node, return the node.
- if ((arg(0) == 'node') && is_numeric(arg(1)) && (arg(2) == NULL)) {
+ if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == NULL) {
return node_load(array('nid' => arg(1)));
}
break;