aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/details.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-03-20 21:00:41 -0400
committerCash Costello <cash.costello@gmail.com>2013-03-20 21:00:41 -0400
commit4da579033674ecdb134bc921f3f0666072419e6c (patch)
tree1752448a3d08934e3981c91019e95d809a819356 /mod/profile/views/default/profile/details.php
parentb6544809afa82fb1da9e5f8a98dc4e2520bb35f0 (diff)
downloadelgg-4da579033674ecdb134bc921f3f0666072419e6c.tar.gz
elgg-4da579033674ecdb134bc921f3f0666072419e6c.tar.bz2
Fixes #5232 handling empty profile url field
Diffstat (limited to 'mod/profile/views/default/profile/details.php')
-rw-r--r--mod/profile/views/default/profile/details.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/profile/views/default/profile/details.php b/mod/profile/views/default/profile/details.php
index 167f995ae..15df6c2fd 100644
--- a/mod/profile/views/default/profile/details.php
+++ b/mod/profile/views/default/profile/details.php
@@ -22,13 +22,13 @@ if (is_array($profile_fields) && sizeof($profile_fields) > 0) {
}
$value = $user->$shortname;
- // validate urls
- if ($valtype == 'url' && !preg_match('~^https?\://~i', $value)) {
- $value = "http://$value";
- }
-
if (!empty($value)) {
- //This function controls the alternating class
+ // validate urls
+ if ($valtype == 'url' && !preg_match('~^https?\://~i', $value)) {
+ $value = "http://$value";
+ }
+
+ // this controls the alternating class
$even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
?>
<div class="<?php echo $even_odd; ?>">