]> git.mxchange.org Git - friendica.git/commitdiff
marital "heart" status no longer an array
authorMike Macgirvin <mike@macgirvin.com>
Thu, 19 Aug 2010 12:29:43 +0000 (05:29 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Thu, 19 Aug 2010 12:29:43 +0000 (05:29 -0700)
mod/profiles.php
view/profile_selectors.php

index 71e037718e7df5552195ea60c04640fcd2bdb63c..853aac6de8248be01a8fee2126de6383e363525f 100644 (file)
@@ -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;
 
index 03dd2aacd28f837f66fd7d27de29543a5ecfaede..46f5c8b68acd802b56cb01b2f9ffd1b7f7d3fb0a 100644 (file)
@@ -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>";