diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-25 13:42:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-25 13:42:56 +0000 |
commit | a98905f5c6696ef166ec797fc6ee80fe8f94f48f (patch) | |
tree | 8190afe432c33bf5756340bc432e84cdb5af4a1a /modules/profile/profile.module | |
parent | 76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6 (diff) | |
download | brdo-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.module | 4 |
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(); |