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

Array to string conversion in ma_client.php at line 416 #1792

Open
tcmitchell opened this issue Mar 22, 2017 · 0 comments
Open

Array to string conversion in ma_client.php at line 416 #1792

tcmitchell opened this issue Mar 22, 2017 · 0 comments

Comments

@tcmitchell
Copy link
Member

tcmitchell commented Mar 22, 2017

The function ma_lookup_members_by_identifying gets called with an array of member ids in fetchMembersNoIdentity. When caching the response, that array is converted to a string, and causes the warning "Array to string conversion in /usr/share/geni-ch/lib/php/ma_client.php on line 416" to be written to the portal log.

We could explicitly check for this case and convert the array to a string to avoid this warning message. We could use print_r($am_urls, TRUE) to explicitly create a string and avoid the warning message.

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

No branches or pull requests

1 participant