summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-25 11:07:54 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-25 11:07:54 +0000
commitd25fa75e2bf6d874b195103e30feb4fcdd3bd82a (patch)
tree48f507c26461ffa2ada9ee81488339a016c21cfc /modules
parent0ed9f460dcdc0baf6b73dd3c77db3dd3748cfe58 (diff)
downloadbrdo-d25fa75e2bf6d874b195103e30feb4fcdd3bd82a.tar.gz
brdo-d25fa75e2bf6d874b195103e30feb4fcdd3bd82a.tar.bz2
#55788, author block configure page should only show public fields, patch by dww
Diffstat (limited to 'modules')
-rw-r--r--modules/profile.module2
-rw-r--r--modules/profile/profile.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile.module b/modules/profile.module
index 2ed1f61db..1e4845dff 100644
--- a/modules/profile.module
+++ b/modules/profile.module
@@ -92,7 +92,7 @@ function profile_block($op = 'list', $delta = 0, $edit = array()) {
else if ($op == 'configure' && $delta == 0) {
// Compile a list of fields to show
$fields = array();
- $result = db_query('SELECT name, title, weight FROM {profile_fields} ORDER BY weight');
+ $result = db_query('SELECT name, title, weight, visibility FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTINGS);
while ($record = db_fetch_object($result)) {
$fields[$record->name] = $record->title;
}
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 2ed1f61db..1e4845dff 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -92,7 +92,7 @@ function profile_block($op = 'list', $delta = 0, $edit = array()) {
else if ($op == 'configure' && $delta == 0) {
// Compile a list of fields to show
$fields = array();
- $result = db_query('SELECT name, title, weight FROM {profile_fields} ORDER BY weight');
+ $result = db_query('SELECT name, title, weight, visibility FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTINGS);
while ($record = db_fetch_object($result)) {
$fields[$record->name] = $record->title;
}