]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/ContactSelector.php
Translated string will never match what's saved in DB if not english
[friendica.git] / src / Content / ContactSelector.php
index 86dd6f002d51f2dc69ee43c9d1e12798e8dde278..a2cc8c3a8c5cda85605f56a21cffbf7c0ab22b72 100644 (file)
@@ -168,7 +168,7 @@ class ContactSelector
                $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
                foreach ($select as $neutral => $selection) {
                        if ($selection !== 'NOTRANSLATION') {
-                               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+                               $selected = (($neutral == $current) ? ' selected="selected" ' : '');
                                $o .= "<option value=\"$neutral\" $selected >$selection</option>";
                        }
                }
@@ -205,7 +205,7 @@ class ContactSelector
                $o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
                foreach ($select as $neutral => $selection) {
                        if ($selection !== 'NOTRANSLATION') {
-                               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+                               $selected = (($neutral == $current) ? ' selected="selected" ' : '');
                                $o .= "<option value=\"$neutral\" $selected >$selection</option>";
                        }
                }
@@ -259,7 +259,7 @@ class ContactSelector
                $o .= '<select name="marital" id="marital-select" size="1" >';
                foreach ($select as $neutral => $selection) {
                        if ($selection !== 'NOTRANSLATION') {
-                               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+                               $selected = (($neutral == $current) ? ' selected="selected" ' : '');
                                $o .= "<option value=\"$neutral\" $selected >$selection</option>";
                        }
                }