mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
This commit is contained in:
parent
074493a29e
commit
d836593a3b
42 changed files with 80 additions and 80 deletions
|
@ -117,8 +117,8 @@ function xmpp_addon_admin(App $a, &$o)
|
|||
|
||||
function xmpp_addon_admin_post()
|
||||
{
|
||||
$bosh_proxy = ((!empty($_POST['bosh_proxy'])) ? trim($_POST['bosh_proxy']) : '');
|
||||
$central_userbase = ((!empty($_POST['central_userbase'])) ? intval($_POST['central_userbase']) : false);
|
||||
$bosh_proxy = (!empty($_POST['bosh_proxy']) ? trim($_POST['bosh_proxy']) : '');
|
||||
$central_userbase = (!empty($_POST['central_userbase']) ? intval($_POST['central_userbase']) : false);
|
||||
|
||||
Config::set('xmpp', 'bosh_proxy', $bosh_proxy);
|
||||
Config::set('xmpp', 'central_userbase', $central_userbase);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue