diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-19 05:29:43 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-19 05:29:43 -0700 |
commit | b16be9e76a9288f0b6803dbaa989a7bdee70d49d (patch) | |
tree | e7248be8bf8301038b5f5f40e93e59f3b7870e1a | |
parent | e0045a43e22082e0a47fd57288105a21311e911a (diff) | |
download | volse-hubzilla-b16be9e76a9288f0b6803dbaa989a7bdee70d49d.tar.gz volse-hubzilla-b16be9e76a9288f0b6803dbaa989a7bdee70d49d.tar.bz2 volse-hubzilla-b16be9e76a9288f0b6803dbaa989a7bdee70d49d.zip |
marital "heart" status no longer an array
-rw-r--r-- | mod/profiles.php | 2 | ||||
-rw-r--r-- | view/profile_selectors.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index 71e037718..853aac6de 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -53,7 +53,7 @@ function profiles_post(&$a) { $postal_code = notags(trim($_POST['postal_code'])); $country_name = notags(trim($_POST['country_name'])); - $marital = notags(trim(implode(', ',$_POST['marital']))); + $marital = notags(trim($_POST['marital'])); if($marital != $orig[0]['marital']) $maritalchanged = true; diff --git a/view/profile_selectors.php b/view/profile_selectors.php index 03dd2aacd..46f5c8b68 100644 --- a/view/profile_selectors.php +++ b/view/profile_selectors.php @@ -29,7 +29,7 @@ function sexpref_selector($current="",$suffix="") { function marital_selector($current="",$suffix="") { $select = array('', t('Single'), t('Lonely'), t('Available'), t('Unavailable'), t('Dating'), t('Unfaithful'), t('Sex Addict'), t('Friends'), t('Friends/Benefits'), t('Casual'), t('Engaged'), t('Married'), t('Partners'), t('Cohabiting'), t('Happy'), t('Not Looking'), t('Swinger'), t('Betrayed'), t('Separated'), t('Unstable'), t('Divorced'), t('Widowed'), t('Uncertain'), t('Complicated'), t('Don\'t care'), t('Ask me') ); - $o .= "<select name=\"marital[]\" id=\"marital-select\" multiple=\"multiple\" size=\"2\" >"; + $o .= "<select name=\"marital\" id=\"marital-select\" size=\"1\" >"; foreach($select as $selection) { $selected = (($selection == $current) ? ' selected="selected" ' : ''); $o .= "<option value=\"$selection\" $selected >$selection</option>"; |