From d4c005acca60d252becb7b2fdd18cd71c6c17cb7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 17 Nov 2002 06:50:25 +0000 Subject: [PATCH] - Make sure empty fields are not being displayed. Patch by Kjartan. --- modules/profile.module | 2 +- modules/profile/profile.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/profile.module b/modules/profile.module index 85e95f9e0c9..130a7e1bb60 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -172,7 +172,7 @@ function _profile_user_view(&$user, $mode) { foreach (_profile_active_fields($mode) as $name) { $field = $profile_fields[$name]; $t = "profile_".$name; - if (isset($user->$t)) { + if (!empty($user->$t)) { switch ($field[0]) { case "textfield": case "textarea": diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 85e95f9e0c9..130a7e1bb60 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -172,7 +172,7 @@ function _profile_user_view(&$user, $mode) { foreach (_profile_active_fields($mode) as $name) { $field = $profile_fields[$name]; $t = "profile_".$name; - if (isset($user->$t)) { + if (!empty($user->$t)) { switch ($field[0]) { case "textfield": case "textarea":