From 1b14a042ec109d1d31a8268060525f09c695e254 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 17 Feb 2011 17:41:37 +0100 Subject: [PATCH] Hiding special extra user data in social profile --- main/social/profile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/social/profile.php b/main/social/profile.php index ef0839e75d..ab0b285f1b 100755 --- a/main/social/profile.php +++ b/main/social/profile.php @@ -298,6 +298,8 @@ if ($show_full_profile) { $extra_information .='
'; $extra_information_value = ''; foreach($extra_user_data as $key=>$data) { + //Avoding parameters + if (in_array($key, array('mail_notify_invitation','mail_notify_message', 'mail_notify_group_message' ))) continue; // get display text, visibility and type from user_field table $field_variable = str_replace('extra_','',$key); $sql = "SELECT field_display_text,field_visible,field_type,id FROM $t_uf WHERE field_variable ='$field_variable'";