summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-25 13:42:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-25 13:42:56 +0000
commita98905f5c6696ef166ec797fc6ee80fe8f94f48f (patch)
tree8190afe432c33bf5756340bc432e84cdb5af4a1a /modules/profile/profile.module
parent76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6 (diff)
downloadbrdo-a98905f5c6696ef166ec797fc6ee80fe8f94f48f.tar.gz
brdo-a98905f5c6696ef166ec797fc6ee80fe8f94f48f.tar.bz2
- Patch #471800 by stella: more code style fixes.
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 0e97ef2bc..f1b4d0c8a 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -341,10 +341,10 @@ function profile_view_profile(&$user) {
// Show private fields to administrators and people viewing their own account.
if (user_access('administer users') || $GLOBALS['user']->uid == $user->uid) {
- $result = db_query('SELECT * FROM {profile_field} WHERE visibility != %d ORDER BY category, weight', PROFILE_HIDDEN);
+ $result = db_query('SELECT * FROM {profile_field} WHERE visibility <> %d ORDER BY category, weight', PROFILE_HIDDEN);
}
else {
- $result = db_query('SELECT * FROM {profile_field} WHERE visibility != %d AND visibility != %d ORDER BY category, weight', PROFILE_PRIVATE, PROFILE_HIDDEN);
+ $result = db_query('SELECT * FROM {profile_field} WHERE visibility <> %d AND visibility <> %d ORDER BY category, weight', PROFILE_PRIVATE, PROFILE_HIDDEN);
}
$fields = array();