Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes array_search comparison. #140

Merged
merged 1 commit into from
Oct 6, 2016
Merged

Fixes array_search comparison. #140

merged 1 commit into from
Oct 6, 2016

Conversation

davidgiga1993
Copy link
Contributor

Test case

A plugin defines a custom -l parameter.
If this parameter is in the first position of the rrdtool_opts array, the default -l argument will still be appended.

Solution

Use === instead of a simple == comparison.
See http://php.net/manual/en/function.array-search.php for more details.

@pommi
Copy link
Owner

pommi commented Oct 6, 2016

Thanks 👍

@pommi pommi merged commit 99ede4b into pommi:master Oct 6, 2016
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