summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 23:40:08 +0100
committerMichael Neves2012-01-26 23:40:08 +0100
commitd3abe8fc93b69d83dceac9c358c647da603b356a (patch)
tree70a754ea499f1b4c446c874f50d4b336c26965ed
parentserials output (diff)
downloadpbs2-d3abe8fc93b69d83dceac9c358c647da603b356a.tar.gz
pbs2-d3abe8fc93b69d83dceac9c358c647da603b356a.tar.xz
pbs2-d3abe8fc93b69d83dceac9c358c647da603b356a.zip
serials output
-rw-r--r--application/controllers/ResourceController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 57e10dc..6c2d41e 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -33,7 +33,7 @@ class ResourceController extends Zend_Controller_Action {
$this->membership = new Application_Model_Membership();
$this->rightrolesMapper = new Application_Model_RightRolesMapper();
- list($this->membership) = $membershipMapper->findBy(array('apikey' => $apikey));
+ $this->membership = array_shift($membershipMapper->findBy(array('apikey' => $apikey)));
if($this->membership == null) {
header('HTTP/1.0 401 Member not found');
die();