Commit d4c005ac authored by Dries's avatar Dries

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

parent 9e32c2e9
......@@ -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":
......
......@@ -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":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment