summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 23:45:58 +0100
committerMichael Neves2012-01-26 23:45:58 +0100
commitfb8b927dec02a12156546b9e564a04d8d2b9e456 (patch)
tree2ff5bebfb756f762f28f2a959e7aa5e917505132
parentserials output (diff)
downloadpbs2-fb8b927dec02a12156546b9e564a04d8d2b9e456.tar.gz
pbs2-fb8b927dec02a12156546b9e564a04d8d2b9e456.tar.xz
pbs2-fb8b927dec02a12156546b9e564a04d8d2b9e456.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 25e73ab..fbd7bbd 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -33,7 +33,7 @@ class ResourceController extends Zend_Controller_Action {
$this->rightrolesMapper = new Application_Model_RightRolesMapper();
$this->membership = array_shift($membershipMapper->findBy(array('apikey' => $apikey)));
- if(true) {
+ if($this->membership == null) {
header('HTTP/1.0 401 Member not found');
die();
}