Commit d25fa75e authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#55788, author block configure page should only show public fields, patch by dww

parent 0ed9f460
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment