From 300ff2de5ef6648179e6ada6038af327f00b5d2f Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 31 Dec 2024 02:21:16 -0500 Subject: [PATCH] Fix cleanup function --- inc/error.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/error.php b/inc/error.php index ff0881fe..3580d8bc 100644 --- a/inc/error.php +++ b/inc/error.php @@ -38,6 +38,10 @@ $error_recursion=false; function global_post_cleanup() { global $post_cleanup_list; + if (!isset($post_cleanup_list)) { + return; + } + foreach ($post_cleanup_list as $f) { $f(); }