mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-19 23:07:03 +00:00
[forumdirectory] CR request: Removed superfluous == 1
This commit is contained in:
parent
e879c320d5
commit
2562aee59d
1 changed files with 9 additions and 9 deletions
|
@ -171,19 +171,19 @@ function forumdirectory_content(App $a)
|
||||||
$profile = $rr;
|
$profile = $rr;
|
||||||
|
|
||||||
$location = '';
|
$location = '';
|
||||||
if (!empty($profile['address']) == 1
|
if (!empty($profile['address'])
|
||||||
|| !empty($profile['locality']) == 1
|
|| !empty($profile['locality'])
|
||||||
|| !empty($profile['region']) == 1
|
|| !empty($profile['region'])
|
||||||
|| !empty($profile['postal-code']) == 1
|
|| !empty($profile['postal-code'])
|
||||||
|| !empty($profile['country-name']) == 1
|
|| !empty($profile['country-name'])
|
||||||
) {
|
) {
|
||||||
$location = L10n::t('Location:');
|
$location = L10n::t('Location:');
|
||||||
}
|
}
|
||||||
|
|
||||||
$gender = !empty($profile['gender']) == 1 ? L10n::t('Gender:') : false;
|
$gender = !empty($profile['gender']) ? L10n::t('Gender:') : false;
|
||||||
$marital = !empty($profile['marital']) == 1 ? L10n::t('Status:') : false;
|
$marital = !empty($profile['marital']) ? L10n::t('Status:') : false;
|
||||||
$homepage = !empty($profile['homepage']) == 1 ? L10n::t('Homepage:') : false;
|
$homepage = !empty($profile['homepage']) ? L10n::t('Homepage:') : false;
|
||||||
$about = !empty($profile['about']) == 1 ? L10n::t('About:') : false;
|
$about = !empty($profile['about']) ? L10n::t('About:') : false;
|
||||||
|
|
||||||
$tpl = get_markup_template('forumdirectory_item.tpl', 'addon/forumdirectory/');
|
$tpl = get_markup_template('forumdirectory_item.tpl', 'addon/forumdirectory/');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue