From 5e78cba223b760aac09dcc3e7dd0835fdff963d5 Mon Sep 17 00:00:00 2001 From: onli Date: Mon, 15 Mar 2021 23:34:41 +0100 Subject: [PATCH] php8 compat: assign smarty variable via index.php --- index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.php b/index.php index 83839358..0bda5e7f 100644 --- a/index.php +++ b/index.php @@ -113,6 +113,14 @@ if (empty($serendipity['smarty_file'])) { serendipity_gzCompression(); +if ($serendipity['smarty']->getTemplateVars('raw_data') == null) { + $serendipity['smarty']->assign( + array( + 'raw_data' => '' + ) + ); +} + $serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));