mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
some more notices and some code beautification
This commit is contained in:
parent
cd2d98f39e
commit
7a29893ecb
6 changed files with 105 additions and 107 deletions
|
@ -76,9 +76,9 @@ function langfilter_addon_settings_post(App $a, &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
if ($_POST['langfilter-settings-submit']) {
|
||||
if (!empty($_POST['langfilter-settings-submit'])) {
|
||||
PConfig::set(local_user(), 'langfilter', 'languages', trim($_POST['langfilter_languages']));
|
||||
$enable = ((x($_POST, 'langfilter_enable')) ? intval($_POST['langfilter_enable']) : 0);
|
||||
$enable = (x($_POST, 'langfilter_enable') ? intval($_POST['langfilter_enable']) : 0);
|
||||
$disable = 1 - $enable;
|
||||
PConfig::set(local_user(), 'langfilter', 'disable', $disable);
|
||||
$minconfidence = 0 + $_POST['langfilter_minconfidence'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue