Merge pull request #6737 from MrPetovan/bug/6630-fix-empty-label-profile

Fix "EMPTY" label in profile
This commit is contained in:
Michael Vogel 2019-02-24 06:34:48 +01:00 committed by GitHub
commit 9f11476ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 184 additions and 171 deletions

View file

@ -150,7 +150,7 @@ class ContactSelector
{
$o = '';
$select = [
'EMPTY' => '',
'' => L10n::t('No answer'),
'Male' => L10n::t('Male'),
'Female' => L10n::t('Female'),
'Currently Male' => L10n::t('Currently Male'),
@ -190,7 +190,7 @@ class ContactSelector
{
$o = '';
$select = [
'EMPTY' => '',
'' => L10n::t('No answer'),
'Males' => L10n::t('Males'),
'Females' => L10n::t('Females'),
'Gay' => L10n::t('Gay'),
@ -228,7 +228,7 @@ class ContactSelector
{
$o = '';
$select = [
'EMPTY' => '',
'' => L10n::t('No answer'),
'Single' => L10n::t('Single'),
'Lonely' => L10n::t('Lonely'),
'Available' => L10n::t('Available'),

View file

@ -787,7 +787,7 @@ class Profile
$profile['marital']['with'] = $a->profile['with'];
}
if (strlen($a->profile['howlong']) && $a->profile['howlong'] >= DBA::NULL_DATETIME) {
if (strlen($a->profile['howlong']) && $a->profile['howlong'] > DBA::NULL_DATETIME) {
$profile['howlong'] = Temporal::getRelativeDate($a->profile['howlong'], L10n::t('for %1$d %2$s'));
}