From 0d5a29416ceca8a9771f1cfeb4ed0eebdc29bdae Mon Sep 17 00:00:00 2001 From: onli Date: Wed, 30 Jun 2021 19:59:47 +0200 Subject: [PATCH] Fix: Every comment subscribed to an entry --- include/functions_comments.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index abf150b9..d974cbc6 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -839,7 +839,7 @@ function serendipity_insertComment($id, $commentInfo, $type = 'NORMAL', $source } $send_optin = false; - if (isset($commentInfo['subscribe'])) { + if (isset($commentInfo['subscribe']) && $commentInfo['subscribe']) { if (!isset($serendipity['allowSubscriptionsOptIn']) || $serendipity['allowSubscriptionsOptIn']) { $subscribe = 'false'; $send_optin = true;