From e293bc18f3a6f432891cc5eee20fa5dab8eebee1 Mon Sep 17 00:00:00 2001 From: onli Date: Sat, 29 May 2021 20:27:02 +0200 Subject: [PATCH] php 8 compat fixes for comment subscription --- include/functions_comments.inc.php | 2 +- templates/2k11/index.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index f832b2b3..abf150b9 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -973,7 +973,7 @@ function serendipity_commentSubscriptionConfirm($hash) { } serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options - WHERE okey LIKE 'commentsub_%' AND $cast < " . (time() - 1814400) . ")"); + WHERE okey LIKE 'commentsub_%' AND $cast < (" . (time() - 1814400) . ")"); $hashinfo = serendipity_db_query("SELECT value FROM {$serendipity['dbPrefix']}options diff --git a/templates/2k11/index.tpl b/templates/2k11/index.tpl index b5376c85..f5fa044a 100644 --- a/templates/2k11/index.tpl +++ b/templates/2k11/index.tpl @@ -104,7 +104,7 @@ {/if} -{$raw_data} +{if isset($raw_data)}{$raw_data}{/if} {serendipity_hookPlugin hook="frontend_footer"} {if $is_embedded != true}