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
|
@ -71,7 +71,7 @@ function showmore_addon_settings_post(&$a, &$b)
|
|||
|
||||
if (!empty($_POST['showmore-submit'])) {
|
||||
PConfig::set(local_user(), 'showmore', 'chars', trim($_POST['showmore-chars']));
|
||||
$enable = (x($_POST, 'showmore-enable') ? intval($_POST['showmore-enable']) : 0);
|
||||
$enable = (!empty($_POST['showmore-enable']) ? intval($_POST['showmore-enable']) : 0);
|
||||
$disable = 1-$enable;
|
||||
PConfig::set(local_user(), 'showmore', 'disable', $disable);
|
||||
info(L10n::t('Show More Settings saved.') . EOL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue