Skip to content

Fix for removing false and 0 values from array#46

Open
newkind wants to merge 1 commit into
OpenSRS:masterfrom
newkind:master
Open

Fix for removing false and 0 values from array#46
newkind wants to merge 1 commit into
OpenSRS:masterfrom
newkind:master

Conversation

@newkind
Copy link
Copy Markdown

@newkind newkind commented May 14, 2020

The array_filter function in array_filter_recursive strips all 0 and false values which breaks bunch of API calls ie. when enabling previously disabled email domain using:

['disabled' => false]

This pull request filters out the null values, but keeps false and 0

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.

1 participant