summaryrefslogtreecommitdiffstats
path: root/application/models/RightMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/RightMapper.php')
-rw-r--r--application/models/RightMapper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/models/RightMapper.php b/application/models/RightMapper.php
index 570259a..9905f92 100644
--- a/application/models/RightMapper.php
+++ b/application/models/RightMapper.php
@@ -66,7 +66,7 @@ class Application_Model_RightMapper
}
}
- public function find($id, Application_Model_Right $right)
+ public function find($id)
{
$result = $this->getDbTable()->find($id);
if (0 == count($result)) {
@@ -75,7 +75,9 @@ class Application_Model_RightMapper
$row = $result->current();
+ $right = new Application_Model_Right();
$right->setID($row->rightID)->setTitle($row->title)->setDescription($row->description);
+ return $right;
}
public function fetchAll()