JsonDbOpensocialService->getPeople uses outdated way of processing ?fields=
parameter
-------------------------------------------------------------------------------------
Key: SHINDIG-1408
URL: https://issues.apache.org/jira/browse/SHINDIG-1408
Project: Shindig
Issue Type: Bug
Components: PHP
Affects Versions: 2.0.0
Environment: All
Reporter: Ivo Jansch
Fix For: 2.0.0
In JsonDbOpensocialService's getPeople call, there is an old way of reading the
$fields parameter. It checks for $fields[0] which throws a notice since $fields
is an associative array nowadays. Also, there is a nice self::adjustFields
method that can be used to filter the fields.
I've adjusted getFields to use self::adjustFields, which also removes the
missing index notice. I'll attach the patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.