From 092899fe35abe11da89aacc8f3580911db321191 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 8 Aug 2011 14:10:11 +0200 Subject: kleinen Fehler korrigiert --- application/controllers/PersonController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/controllers/PersonController.php') 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); -- cgit v1.2.3-55-g7522