summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/PersonController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php
index a87702c..b89b4bf 100644
--- a/application/controllers/PersonController.php
+++ b/application/controllers/PersonController.php
@@ -69,7 +69,7 @@ class PersonController extends Zend_Controller_Action
}
}
- if(is_array($this->memberships)) {
+ if(count($this->memberships) > 0) {
foreach($this->memberships as $membership) {
$grouprequest = "groupid=" . $membership->getGroupID();
$groupApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['getgroup'] . $membership->getApikey(), 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $grouprequest);