diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-21 18:49:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-21 18:49:06 +0000 |
commit | 0fb6af111ed53fa15be1b2108f1fe436054ed35c (patch) | |
tree | a21023c0f86d1a2d7ec81906f2863850581eb298 /modules | |
parent | b42e2b6760988c8308858e53ca8460664e0c88c3 (diff) | |
download | brdo-0fb6af111ed53fa15be1b2108f1fe436054ed35c.tar.gz brdo-0fb6af111ed53fa15be1b2108f1fe436054ed35c.tar.bz2 |
- Fixed broken query
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profile.module | 2 | ||||
-rw-r--r-- | modules/profile/profile.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile.module b/modules/profile.module index 57d70f1e2..1dde9a5ac 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -60,7 +60,7 @@ function profile_block($op = 'list', $delta = 0, $edit = array()) { if ($use_fields = variable_get('profile_block_author_fields', array())) { // Compile a list of fields to show $fields = array(); - $result = db_query('SELECT name, title, type, visibility FROM {profile_fields} WHERE visibility == %d ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTING); + $result = db_query('SELECT name, title, type, visibility FROM {profile_fields} WHERE visibility = %d ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTING); while ($record = db_fetch_object($result)) { // Endure that field is displayed only if it is among the defined block fields and, if it is private, the user has appropriate permissions. if (in_array($record->name, $use_fields)) { diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 57d70f1e2..1dde9a5ac 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -60,7 +60,7 @@ function profile_block($op = 'list', $delta = 0, $edit = array()) { if ($use_fields = variable_get('profile_block_author_fields', array())) { // Compile a list of fields to show $fields = array(); - $result = db_query('SELECT name, title, type, visibility FROM {profile_fields} WHERE visibility == %d ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTING); + $result = db_query('SELECT name, title, type, visibility FROM {profile_fields} WHERE visibility = %d ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTING); while ($record = db_fetch_object($result)) { // Endure that field is displayed only if it is among the defined block fields and, if it is private, the user has appropriate permissions. if (in_array($record->name, $use_fields)) { |