summaryrefslogtreecommitdiffstats
path: root/application/controllers/PersonController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-08 14:10:11 +0200
committerBjörn Geiger2011-08-08 14:10:11 +0200
commit092899fe35abe11da89aacc8f3580911db321191 (patch)
tree5837f93cfd21d8dc8921aa0a9eae1a5b83b4ff72 /application/controllers/PersonController.php
parentminor (diff)
downloadpoolctrl-092899fe35abe11da89aacc8f3580911db321191.tar.gz
poolctrl-092899fe35abe11da89aacc8f3580911db321191.tar.xz
poolctrl-092899fe35abe11da89aacc8f3580911db321191.zip
kleinen Fehler korrigiert
Diffstat (limited to 'application/controllers/PersonController.php')
-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);