diff options
Diffstat (limited to 'application/models/RoleMapper.php')
| -rw-r--r-- | application/models/RoleMapper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/application/models/RoleMapper.php b/application/models/RoleMapper.php index 0fe4a58..5658f70 100644 --- a/application/models/RoleMapper.php +++ b/application/models/RoleMapper.php @@ -70,7 +70,7 @@ class Application_Model_RoleMapper { } public function getDbTable() { - if (null == = $this->_dbTable) { + if (null === $this->_dbTable) { $this->setDbTable('Application_Model_DbTable_Role'); } @@ -81,7 +81,7 @@ class Application_Model_RoleMapper { $data = array('roleID' => $role->getID() , 'groupID' => $role->getGroupID() , 'title' => $role->getTitle() , 'description' => $role->getDescription(), 'inheritance' => $role->getInheritance() ); - if (null == = ($id = $role->getID()) ) { + if (null === ($id = $role->getID()) ) { unset($data['roleID']); $this->getDbTable()->insert($data); } else { @@ -90,7 +90,7 @@ class Application_Model_RoleMapper { } public function delete(Application_Model_Role $role) { - if (null == = ($id = $role->getID()) ) { + if (null === ($id = $role->getID()) ) { return; } else { $this->getDbTable()->delete(array('roleID = ?' => $id)); |
