- Make sure empty fields are not being displayed. Patch by Kjartan.
parent
9e32c2e960
commit
d4c005acca
|
@ -172,7 +172,7 @@ function _profile_user_view(&$user, $mode) {
|
||||||
foreach (_profile_active_fields($mode) as $name) {
|
foreach (_profile_active_fields($mode) as $name) {
|
||||||
$field = $profile_fields[$name];
|
$field = $profile_fields[$name];
|
||||||
$t = "profile_".$name;
|
$t = "profile_".$name;
|
||||||
if (isset($user->$t)) {
|
if (!empty($user->$t)) {
|
||||||
switch ($field[0]) {
|
switch ($field[0]) {
|
||||||
case "textfield":
|
case "textfield":
|
||||||
case "textarea":
|
case "textarea":
|
||||||
|
|
|
@ -172,7 +172,7 @@ function _profile_user_view(&$user, $mode) {
|
||||||
foreach (_profile_active_fields($mode) as $name) {
|
foreach (_profile_active_fields($mode) as $name) {
|
||||||
$field = $profile_fields[$name];
|
$field = $profile_fields[$name];
|
||||||
$t = "profile_".$name;
|
$t = "profile_".$name;
|
||||||
if (isset($user->$t)) {
|
if (!empty($user->$t)) {
|
||||||
switch ($field[0]) {
|
switch ($field[0]) {
|
||||||
case "textfield":
|
case "textfield":
|
||||||
case "textarea":
|
case "textarea":
|
||||||
|
|
Loading…
Reference in New Issue