From 9578e3ff2acf79c7ae5fc6b0c1d91f6c6ef54e3a Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 1 Sep 2018 03:15:29 +0000 Subject: [PATCH] And again a notice --- blogger/blogger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blogger/blogger.php b/blogger/blogger.php index 3114f98e..68837cd8 100644 --- a/blogger/blogger.php +++ b/blogger/blogger.php @@ -120,8 +120,8 @@ function blogger_settings(App $a, &$s) function blogger_settings_post(App $a, array &$b) { if (!empty($_POST['blogger-submit'])) { - PConfig::set(local_user(), 'blogger', 'post', intval($_POST['blogger'])); - PConfig::set(local_user(), 'blogger', 'post_by_default', intval($_POST['bl_bydefault'])); + PConfig::set(local_user(), 'blogger', 'post', defaults($_POST, 'blogger', false)); + PConfig::set(local_user(), 'blogger', 'post_by_default', defaults($_POST, 'bl_bydefault', false)); PConfig::set(local_user(), 'blogger', 'bl_username', trim($_POST['bl_username'])); PConfig::set(local_user(), 'blogger', 'bl_password', trim($_POST['bl_password'])); PConfig::set(local_user(), 'blogger', 'bl_blog', trim($_POST['bl_blog'])); -- 2.39.5