diff --git a/includes/post-brochures.php b/includes/post-brochures.php index 9d48bec..7f0ee91 100644 --- a/includes/post-brochures.php +++ b/includes/post-brochures.php @@ -5,8 +5,9 @@ function homegrade_brochure_post_title_updater($post_id) $my_post = array(); $my_post['ID'] = $post_id; + if (!$post_id) return - $brochureTaxonomy = get_the_terms($post_id, 'thematiques')[0]; + $brochureTaxonomy = get_the_terms($post_id, 'thematiques')[0]; // write_log($brochureTaxonomy);