fixing php warning
This commit is contained in:
parent
4f571e995b
commit
517ca7e791
|
|
@ -7,6 +7,8 @@ function homegrade_brochure_post_title_updater($post_id)
|
||||||
$my_post['ID'] = $post_id;
|
$my_post['ID'] = $post_id;
|
||||||
|
|
||||||
$fields = get_fields($post_id);
|
$fields = get_fields($post_id);
|
||||||
|
if (!$fields) return;
|
||||||
|
|
||||||
$brochureTaxonomy = $fields['publications_taxonomy'];
|
$brochureTaxonomy = $fields['publications_taxonomy'];
|
||||||
|
|
||||||
if (!$post_id) return;
|
if (!$post_id) return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user