mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +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
|
@ -101,7 +101,7 @@ function nsfw_addon_settings_post(&$a, &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
if ($_POST['nsfw-submit']) {
|
||||
if (!empty($_POST['nsfw-submit'])) {
|
||||
PConfig::set(local_user(), 'nsfw', 'words', trim($_POST['nsfw-words']));
|
||||
$enable = (x($_POST, 'nsfw-enable') ? intval($_POST['nsfw-enable']) : 0);
|
||||
$disable = 1 - $enable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue