Home › Forums › Add-ons › Flexible Content Field › Undefined index of name in flex modules › Reply To: Undefined index of name in flex modules
You’ve lost me.
You are calling an ACF function that tests if a value is set. This function requires a value to be passed. This issue is that $sub_field['name']
is undefined were you are referencing it. This is PHP issuing the warning on your call. You can surpress this error by doing
@acf_is_empty($sub_field['name'])
However, I don’t understand why you’re calling an ACF function when you could simply do
if (empty($sub_field['name']))
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.