summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-08 11:32:03 +0200
committerBjörn Geiger2011-08-08 11:32:03 +0200
commit1168bc3c54ae1cd02077fcfff648a7073de9c771 (patch)
tree0b664ad0239af6ce1d5848bb37f359e51f924183 /application/controllers
parentFehler korrigiert (diff)
downloadpbs2-1168bc3c54ae1cd02077fcfff648a7073de9c771.tar.gz
pbs2-1168bc3c54ae1cd02077fcfff648a7073de9c771.tar.xz
pbs2-1168bc3c54ae1cd02077fcfff648a7073de9c771.zip
minor
Diffstat (limited to 'application/controllers')
-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();
}