From 517ca7e7919a2bb37141054994831bd5506f6f66 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 18 Jan 2024 15:47:01 +0100 Subject: [PATCH] fixing php warning --- includes/post-brochures.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/post-brochures.php b/includes/post-brochures.php index ec287cb..667bd81 100644 --- a/includes/post-brochures.php +++ b/includes/post-brochures.php @@ -7,6 +7,8 @@ function homegrade_brochure_post_title_updater($post_id) $my_post['ID'] = $post_id; $fields = get_fields($post_id); + if (!$fields) return; + $brochureTaxonomy = $fields['publications_taxonomy']; if (!$post_id) return;