You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Fieldmanager_Hidden field has no value, or a value equal to an empty string, the following warning is reported:
PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/.../wp-content/plugins/wordpress-fieldmanager/php/class-fieldmanager-hidden.php on line 28
I've worked around this by adding a check on the template before calling $form->element or by adding some dummy string value, like 'null', to the field in array of values returned by the fm_form_myform_values action.
The text was updated successfully, but these errors were encountered:
When a Fieldmanager_Hidden field has no value, or a value equal to an empty string, the following warning is reported:
I've worked around this by adding a check on the template before calling $form->element or by adding some dummy string value, like 'null', to the field in array of values returned by the fm_form_myform_values action.
The text was updated successfully, but these errors were encountered: