mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12804] Dont use ternary form
PHPBB3-12804
This commit is contained in:
parent
fbc07d3b14
commit
0a286e044b
2 changed files with 2 additions and 2 deletions
|
@ -394,7 +394,7 @@ class ucp_profile
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
||||||
'S_JABBER_ENABLED' => ($config['jab_enable']) ? true : false,
|
'S_JABBER_ENABLED' => $config['jab_enable'],
|
||||||
'JABBER' => $data['jabber'],
|
'JABBER' => $data['jabber'],
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -1286,7 +1286,7 @@ switch ($mode)
|
||||||
|
|
||||||
'S_IP_SEARCH_ALLOWED' => ($auth->acl_getf_global('m_info')) ? true : false,
|
'S_IP_SEARCH_ALLOWED' => ($auth->acl_getf_global('m_info')) ? true : false,
|
||||||
'S_EMAIL_SEARCH_ALLOWED'=> ($auth->acl_get('a_user')) ? true : false,
|
'S_EMAIL_SEARCH_ALLOWED'=> ($auth->acl_get('a_user')) ? true : false,
|
||||||
'S_JABBER_ENABLED' => ($config['jab_enable']) ? true : false,
|
'S_JABBER_ENABLED' => $config['jab_enable'],
|
||||||
'S_IN_SEARCH_POPUP' => ($form && $field) ? true : false,
|
'S_IN_SEARCH_POPUP' => ($form && $field) ? true : false,
|
||||||
'S_SEARCH_USER' => ($mode == 'searchuser' || ($mode == '' && $submit)),
|
'S_SEARCH_USER' => ($mode == 'searchuser' || ($mode == '' && $submit)),
|
||||||
'S_FORM_NAME' => $form,
|
'S_FORM_NAME' => $form,
|
||||||
|
|
Loading…
Add table
Reference in a new issue