diff options
| author | Simon | 2011-03-16 17:59:26 +0100 |
|---|---|---|
| committer | Simon | 2011-03-16 17:59:26 +0100 |
| commit | c58a1d0cef4b2088bb35fe0e37c047cad6331b4f (patch) | |
| tree | 0f11e79b93ba54efbccbf5566fe8e9605e08b87a /application/models/ClientMapper.php | |
| parent | Lib umbenannt und beispielverwendung korrigiert (diff) | |
| download | pbs2-c58a1d0cef4b2088bb35fe0e37c047cad6331b4f.tar.gz pbs2-c58a1d0cef4b2088bb35fe0e37c047cad6331b4f.tar.xz pbs2-c58a1d0cef4b2088bb35fe0e37c047cad6331b4f.zip | |
ClientMapper return value
Diffstat (limited to 'application/models/ClientMapper.php')
| -rw-r--r-- | application/models/ClientMapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/models/ClientMapper.php b/application/models/ClientMapper.php index 2c530d9..e3bb25d 100644 --- a/application/models/ClientMapper.php +++ b/application/models/ClientMapper.php @@ -55,9 +55,9 @@ class Application_Model_ClientMapper if (null === ($id = $client->getID()) ) { unset($data['clientID']); - $this->getDbTable()->insert($data); + return $this->getDbTable()->insert($data); } else { - $this->getDbTable()->update($data, array('clientID = ?' => $id)); + return $this->getDbTable()->update($data, array('clientID = ?' => $id)); } } |
