From c5b4d0afb765a15ea6afa5559b6de1a367c12c2c Mon Sep 17 00:00:00 2001 From: PayBas Date: Mon, 7 Jul 2014 08:59:38 +0200 Subject: [ticket/12804] Hide Jabber from UCP & member search when disabled PHPBB3-12804 --- phpBB/includes/ucp/ucp_profile.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/ucp') diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 5ba5f1e830..6940f18345 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -393,8 +393,9 @@ class ucp_profile } $template->assign_vars(array( - 'ERROR' => (sizeof($error)) ? implode('
', $error) : '', - 'JABBER' => $data['jabber'], + 'ERROR' => (sizeof($error)) ? implode('
', $error) : '', + 'S_JABBER_ENABLED' => ($config['jab_enable']) ? true : false, + 'JABBER' => $data['jabber'], )); // Get additional profile fields and assign them to the template block var 'profile_fields' -- cgit v1.2.1