mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02: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
|
@ -54,8 +54,8 @@ function newmemberwidget_network_mod_init ($a, $b)
|
|||
|
||||
function newmemberwidget_addon_admin_post(&$a)
|
||||
{
|
||||
$ft = ((x($_POST, 'freetext')) ? trim($_POST['freetext']) : "");
|
||||
$lsn = ((x($_POST, 'localsupportname')) ? Strings::escapeTags(trim($_POST['localsupportname'])) : "");
|
||||
$ft = (!empty($_POST['freetext']) ? trim($_POST['freetext']) : "");
|
||||
$lsn = (!empty($_POST['localsupportname']) ? Strings::escapeTags(trim($_POST['localsupportname'])) : "");
|
||||
$gs = intval($_POST['linkglobalsupport']);
|
||||
$ls = intval($_POST['linklocalsupport']);
|
||||
Config::set('newmemberwidget', 'freetext', trim($ft));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue