- Make sure empty fields are not being displayed. Patch by Kjartan.

4.1.x
Dries Buytaert 2002-11-17 06:50:25 +00:00
parent 9e32c2e960
commit d4c005acca
2 changed files with 2 additions and 2 deletions

View File

@ -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":

View File

@ -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":