mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Don´t show hidden profile fields
This commit is contained in:
parent
6ba5326fa3
commit
78360b7824
@ -204,7 +204,7 @@ class Profile extends HActiveRecord
|
||||
{
|
||||
$fields = array();
|
||||
|
||||
foreach (ProfileField::model()->findAllByAttributes(array('profile_field_category_id' => $category->id), array('order' => 'sort_order')) as $field) {
|
||||
foreach (ProfileField::model()->findAllByAttributes(array('profile_field_category_id' => $category->id, 'visible' => 1), array('order' => 'sort_order')) as $field) {
|
||||
|
||||
if ($field->getUserValue($this->user) != "") {
|
||||
$fields[] = $field;
|
||||
|
Loading…
x
Reference in New Issue
Block a user