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