[pageheader] Avoid notice
This commit is contained in:
parent
f91b114ba7
commit
979f12e51e
2 changed files with 8 additions and 6 deletions
|
@ -56,11 +56,11 @@ function irc_addon_settings_post(&$a, &$b) {
|
|||
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue