diff options
author | Michael Neves | 2012-01-26 23:40:08 +0100 |
---|---|---|
committer | Michael Neves | 2012-01-26 23:40:08 +0100 |
commit | d3abe8fc93b69d83dceac9c358c647da603b356a (patch) | |
tree | 70a754ea499f1b4c446c874f50d4b336c26965ed | |
parent | serials output (diff) | |
download | pbs2-d3abe8fc93b69d83dceac9c358c647da603b356a.tar.gz pbs2-d3abe8fc93b69d83dceac9c358c647da603b356a.tar.xz pbs2-d3abe8fc93b69d83dceac9c358c647da603b356a.zip |
serials output
-rw-r--r-- | application/controllers/ResourceController.php | 2 |
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(); |