[forumdirectory] Fixes, type-hints and PAGE_* moval #671

Merged
Quix0r merged 4 commits from forumdirectory/fixes-rewrites-x-empty into develop 2018-07-28 07:33:39 +02:00
Showing only changes of commit 2562aee59d - Show all commits

View file

@ -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/');