From c38aef282d1c128c6275e7148d2a3cad83f7beae Mon Sep 17 00:00:00 2001 From: "DM42.Net Hubzilla Development" Date: Thu, 5 Dec 2019 23:53:48 -0500 Subject: [PATCH] Fix: hide_friends setting won't stick --- Zotlabs/Module/Settings/Channel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Module/Settings/Channel.php b/Zotlabs/Module/Settings/Channel.php index d968e48f2..ed3df8d37 100644 --- a/Zotlabs/Module/Settings/Channel.php +++ b/Zotlabs/Module/Settings/Channel.php @@ -164,7 +164,7 @@ class Channel { $adult = (($_POST['adult'] == 1) ? 1 : 0); $defpermcat = ((x($_POST,'defpermcat')) ? notags(trim($_POST['defpermcat'])) : 'default'); - $hide_friends = ((x($_POST,'hide_friends')) ? 1 - intval($_POST['hide_friends']) : 0); + $hide_friends = 1 - intval($_POST['hide_friends']); $cal_first_day = (((x($_POST,'first_day')) && intval($_POST['first_day']) >= 0 && intval($_POST['first_day']) < 7) ? intval($_POST['first_day']) : 0); $mailhost = ((array_key_exists('mailhost',$_POST)) ? notags(trim($_POST['mailhost'])) : '');