GENI-NSF / geni-portal

A UI for a GENI clearinghouse
Other
3 stars 8 forks source link

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

Open tcmitchell opened 7 years ago

tcmitchell commented 7 years ago

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.