From 4ec30e83c446ddf0758f015d9ad5c5aebd2f0ca6 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Fri, 11 Mar 2011 10:02:36 +0100 Subject: bootos getressources --- application/models/BootOsMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/models/BootOsMapper.php') diff --git a/application/models/BootOsMapper.php b/application/models/BootOsMapper.php index 66de08d..fab73f2 100644 --- a/application/models/BootOsMapper.php +++ b/application/models/BootOsMapper.php @@ -51,7 +51,7 @@ class Application_Model_BootOsMapper $data = array('bootosID'=> $botos->getID() ,'configID'=> $botos->getConfigID() ,'groupID'=> $botos->getGroupID() ,'title'=> $botos->getTitle(), 'membershipID'=> $botos->getMembershipID() ,'path_init'=> $botos->getPath_init() ,'path_kernel'=> $botos->getPath_kernel() ,'defaultkcl'=> $botos->getDefaultkcl() ,'created'=> $botos->getCreated() ,'description'=> $botos->getDescription() ,'expires'=> $botos->getExpires() ,'public'=> $botos->getPublic() ); if (null === ($id = $botos->getID()) ) { unset($data['bootosID']); - $this->getDbTable()->insert($data); + return $this->getDbTable()->insert($data); } else { $this->getDbTable()->update($data, array('bootosID = ?' => $id)); } -- cgit v1.2.3-55-g7522