From 5a0b7541e7ca9b0d0d169b59f2da70672aad4e21 Mon Sep 17 00:00:00 2001 From: azett Date: Sat, 19 Dec 2020 12:52:53 +0100 Subject: [PATCH] Getting FlatPress ready for PHP 8: Added a lot of missing checks for undefined variables and array keys in template and PHP files. --- admin/main.tpl | 9 +- admin/panels/entry/admin.entry.cats.tpl | 3 + admin/panels/entry/admin.entry.list.tpl | 2 +- admin/panels/entry/admin.entry.write.tpl | 10 +- admin/panels/maintain/admin.maintain.tpl | 4 +- fp-includes/core/core.fpdb.class.php | 1802 ++++++++--------- fp-includes/core/core.widgets.php | 288 ++- .../plugins/function.list_categories.php | 212 +- fp-interface/sharedtpls/errorlist.tpl | 6 +- .../commentcenter/plugin.commentcenter.php | 4 +- 10 files changed, 1135 insertions(+), 1205 deletions(-) diff --git a/admin/main.tpl b/admin/main.tpl index 84e7787..4dc78a9 100755 --- a/admin/main.tpl +++ b/admin/main.tpl @@ -18,7 +18,7 @@ {/foreach} - {if $submenu} + {if isset($submenu)}