if(!local_user())
return;
- if(!empty($_POST['irc-submit']) && $_POST['irc-submit']) {
- if (!isset($_POST['autochans'])) {
+ if(!empty($_POST['irc-submit'])) {
+ if (isset($_POST['autochans'])) {
PConfig::set(local_user(), 'irc', 'autochans', trim(($_POST['autochans'])));
}
- if (!isset($_POST['sitechats'])) {
+ if (isset($_POST['sitechats'])) {
PConfig::set(local_user(), 'irc', 'sitechats', trim($_POST['sitechats']));
}
/* upid pop-up thing */
* Hauke Altmann <https://snarl.de/profile/tugelblend>
*
*/
-use Friendica\Core\Addon;
+
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
if(! is_site_admin())
return;
- if($_POST['pageheader-submit']) {
- Config::set('pageheader','text',trim(strip_tags($_POST['pageheader-words'])));
+ if(!empty($_POST['pageheader-submit'])) {
+ if (isset($_POST['pageheader-words'])) {
+ Config::set('pageheader', 'text', trim(strip_tags($_POST['pageheader-words'])));
+ }
info(L10n::t('pageheader Settings saved.') . EOL);
}
}