Warning while creating custom icon form

Hi,

I am creating a custom module named Flip Box ( https://ultimate.brainstormforce.com/flip-box/ ), for which I need your default icon set. I have created a icon field using
FLBuilder::register_settings_form( ‘icon_form_field’, array( /entire array/ ) );

This has all the fields from your Icon module plus few extra fields that I needed. The icon field is not mandatory to be selected, thus when I do not select the icon for the flip-box it shows me a warning. Refer - http://vrunda.sharkz.in/bb-flip-box/

Is there anything I am missing?

[Content Hidden]

Hey Pratik,

I’ve already assigned another member of the team to assist you.

Ben

Hey PC,

I’ve reviewed the error and the code where it’s happening but I’m not sure what’s going on. Would it be possible to get a copy of your module, or temporary FTP access to your site to test?

Thanks,
Justin

[Content Hidden]

Thanks, PC! I’m checking this out now.

Justin

Hi PC,

I found and fixed the bug and will get that out in the next release. For now, you can change line 331 of class-fl-builder-icons.php from this…

if ( $field['type'] == 'icon' ) {

to this…

if ( $field['type'] == 'icon' && ! empty( $module->settings->$setting ) ) {

Justin

Thank you Justin!