Author: chabotc
Date: Wed Dec 3 23:31:59 2008
New Revision: 723233
URL: http://svn.apache.org/viewvc?rev=723233&view=rev
Log:
SHINDIG-760 by Pan Jie - newFetchPeopleRequest could not fetch more than one
user through array of user id
Modified:
incubator/shindig/trunk/php/src/social/service/PersonHandler.php
Modified: incubator/shindig/trunk/php/src/social/service/PersonHandler.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/service/PersonHandler.php?rev=723233&r1=723232&r2=723233&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/service/PersonHandler.php (original)
+++ incubator/shindig/trunk/php/src/social/service/PersonHandler.php Wed Dec 3
23:31:59 2008
@@ -58,7 +58,7 @@
// Preconditions
if (count($userIds) < 1) {
throw new IllegalArgumentException("No userId specified");
- } elseif (count($userIds) > 1) {
+ } elseif (count($userIds) > 1 && count($optionalPersonId) != 0) {
throw new IllegalArgumentException("Cannot fetch personIds for multiple
userIds");
}