Skip to content

Commit

Permalink
[com_contact] Display 0 value with custom field (#20124)
Browse files Browse the repository at this point in the history
* Display 0 value

* Display 0 value
  • Loading branch information
Quy authored and Michael Babker committed May 10, 2018
1 parent b7cdd78 commit f9c5d4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/com_contact/layouts/field/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
return;
}

if (!$value)
if (!strlen($value))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/layouts/fields/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
foreach ($fields as $field)
{
// If the value is empty do nothing
if (empty($field->value) && !$isMail)
if (!strlen($field->value) && !$isMail)
{
continue;
}
Expand Down

0 comments on commit f9c5d4d

Please sign in to comment.