aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-04 00:38:34 -0800
committerFriendika <info@friendika.com>2010-12-04 00:38:34 -0800
commitb09ab4ef2ce9a9b55e4763418b3358aefe2307fc (patch)
treeb1208c23265dd324dc619f423c8fd16cad72ffb5
parent4be5e57afdd0017d0cf40b23e60ff5b6e243992e (diff)
downloadvolse-hubzilla-b09ab4ef2ce9a9b55e4763418b3358aefe2307fc.tar.gz
volse-hubzilla-b09ab4ef2ce9a9b55e4763418b3358aefe2307fc.tar.bz2
volse-hubzilla-b09ab4ef2ce9a9b55e4763418b3358aefe2307fc.zip
"with" is optional - don't show anything if not present.
-rw-r--r--view/en/profile_advanced.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/view/en/profile_advanced.php b/view/en/profile_advanced.php
index c736448e5..7e2036890 100644
--- a/view/en/profile_advanced.php
+++ b/view/en/profile_advanced.php
@@ -62,7 +62,11 @@ $o .= <<< EOT
<div id="advanced-profile-marital-wrapper" >
<div id="advanced-profile-marital-text"><span class="heart">&hearts;</span> Status:</div>
<div id="advanced-profile-marital">{$a->profile['marital']}</div>
-<div id="advanced-profile-with">({$a->profile['with']})</div>
+EOT;
+
+if($a->profile['with'])
+ $o .= "<div id=\"advanced-profile-with\">({$a->profile['with']})</div>";
+$o .= <<< EOT
</div>
<div id="advanced-profile-marital-end"></div>
EOT;