Skip to content

Check return value for getItems() in getIdentities(). #7454

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

Closed
wants to merge 1 commit into from

Conversation

pbaylies
Copy link
Contributor

@pbaylies pbaylies commented Nov 16, 2016

If getItems() returns an empty array then this code will generate a PHP warning and potentially crash the page; let's not do that, and check our return values before we try to loop over them.

If getItems() returns an empty array then this code will generate a PHP warning and potentially crash the page; let's not do that, and check our return values before we try to loop over them.
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Nov 16, 2016

CLA assistant check
All committers have signed the CLA.

@maghamed maghamed self-requested a review February 22, 2017 19:15
@maghamed maghamed self-assigned this Feb 22, 2017
@maghamed maghamed added this to the February 2017 milestone Feb 24, 2017
@maksek maksek modified the milestones: February 2017, March 2017 Mar 1, 2017
@okorshenko okorshenko added this to the March 2017 milestone Mar 1, 2017
@okorshenko okorshenko modified the milestones: March 2017, April 2017 Apr 2, 2017
@okorshenko okorshenko modified the milestones: April 2017, May 2017 May 9, 2017
@okorshenko okorshenko modified the milestones: May 2017, June 2017 Jun 1, 2017
@ishakhsuvarov ishakhsuvarov self-assigned this Jun 6, 2017
@ishakhsuvarov
Copy link
Contributor

Hi @pbaylies
I'm closing this PR, since #9777 has the same issue fixed and covered with the tests.
Thanks for the collaboration.

@pbaylies
Copy link
Contributor Author

pbaylies commented Jun 6, 2017

@ishakhsuvarov Thank you!

magento-devops-reposync-svc pushed a commit that referenced this pull request Feb 18, 2022
[performance] MCP-919:  On some cloud instances the scenario 'Admin Token Retrieval' does not work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants