summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index eeb00b2..ae640f5 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -1062,8 +1062,8 @@ class ResourceController extends Zend_Controller_Action
$role = new Application_Model_Role();
$roleMapper->find($roleID, $role);
- if($role == null){
- header('HTTP/1.0 400 No Pool was found');
+ if(!isset($role->getID())) {
+ header('HTTP/1.0 400 No Role was found');
die();
}