You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/18 11:18:35 UTC
svn commit: r669122 -
/incubator/shindig/trunk/php/src/socialdata/opensocial/model/idSpec.php
Author: chabotc
Date: Wed Jun 18 02:18:34 2008
New Revision: 669122
URL: http://svn.apache.org/viewvc?rev=669122&view=rev
Log:
SHINDIG-392 allow array of userId's in idSpec (old wire format)
Modified:
incubator/shindig/trunk/php/src/socialdata/opensocial/model/idSpec.php
Modified: incubator/shindig/trunk/php/src/socialdata/opensocial/model/idSpec.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialdata/opensocial/model/idSpec.php?rev=669122&r1=669121&r2=669122&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialdata/opensocial/model/idSpec.php (original)
+++ incubator/shindig/trunk/php/src/socialdata/opensocial/model/idSpec.php Wed Jun 18 02:18:34 2008
@@ -33,7 +33,7 @@
{
if (! empty($jsonIdSpec) && in_array((string)$jsonIdSpec, idSpec::$types)) {
$idSpecEnum = (string)$jsonIdSpec;
- } elseif (empty($jsonIdSpec)) {
+ } elseif (!empty($jsonIdSpec)) {
$idSpecEnum = 'USER_IDS';
} else {
throw new Exception("The json request had a bad idSpec");
@@ -48,8 +48,8 @@
*/
public function fetchUserIds()
{
- $userIdArray = json_decode($this->jsonSpec, true);
- if (! is_array($userIdArray)) {
+ $userIdArray = $this->jsonSpec;
+ if (!is_array($userIdArray)) {
$userIdArray = array($userIdArray);
}
$userIds = array();