- if((x($profile,'address') == 1)
- || (x($profile,'locality') == 1)
- || (x($profile,'region') == 1)
- || (x($profile,'postal-code') == 1)
- || (x($profile,'country-name') == 1))
- $location = L10n::t('Location:');
-
- $gender = ((x($profile,'gender') == 1) ? L10n::t('Gender:') : False);
-
- $marital = ((x($profile,'marital') == 1) ? L10n::t('Status:') : False);
-
- $homepage = ((x($profile,'homepage') == 1) ? L10n::t('Homepage:') : False);
+ if (!empty($profile['address'])
+ || !empty($profile['locality'])
+ || !empty($profile['region'])
+ || !empty($profile['postal-code'])
+ || !empty($profile['country-name'])
+ ) {
+ $location = L10n::t('Location:');
+ } else {
+ $location = '';
+ }