Skip to content

Update gump.class.php to fix type of field error as integer#356

Open
sel-1 wants to merge 1 commit into
Wixel:masterfrom
sel-1:patch-1
Open

Update gump.class.php to fix type of field error as integer#356
sel-1 wants to merge 1 commit into
Wixel:masterfrom
sel-1:patch-1

Conversation

@sel-1

@sel-1 sel-1 commented Apr 17, 2025

Copy link
Copy Markdown

The change is needed because the validation of the if-s are based on integer values and not string. As $input['field']['error'] is passed as string, all the if are failing.

The change is needed because the validation of the if-s are based on integer values and not string.  As $input['field']['error'] is passed as string, all the if are failing.
@sel-1

sel-1 commented Apr 17, 2025

Copy link
Copy Markdown
Author

'is_string($input[$field]['error'])' is better than 'gettype($input[$field]['error']) == 'string''

@filisko

filisko commented Apr 20, 2025

Copy link
Copy Markdown
Contributor

@sel-1 add the unit test then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants