From d2e4edaec25eeed1d5b16fc7f037b2b30df1473e Mon Sep 17 00:00:00 2001 From: asus Date: Tue, 16 Apr 2024 14:22:44 +0200 Subject: [PATCH] added comment to explain the protection --- plugins/fbpatch/php/patches/hide_show.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/fbpatch/php/patches/hide_show.php b/plugins/fbpatch/php/patches/hide_show.php index 38a06f6..a4c9d5f 100644 --- a/plugins/fbpatch/php/patches/hide_show.php +++ b/plugins/fbpatch/php/patches/hide_show.php @@ -32,6 +32,7 @@ function form_partner_before_process($form_id, $post_array, $form_type) { //nothing to overwrite return Fbpatch::set_post_elements_to_forget(0, false, array()); } + // if post creation there will not be an ID if (!isset($post_array['ID']) || empty($post_array['ID'])) { //nothing to overwrite return Fbpatch::set_post_elements_to_forget(0, false, array());