From 0e017ebdc1edbbf230f0f0160f103c39ef675725 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Sun, 6 Mar 2011 20:12:36 +0100 Subject: datenbank erweitert, BootMenu, Config fertig --- application/controllers/BootosController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'application/controllers/BootosController.php') diff --git a/application/controllers/BootosController.php b/application/controllers/BootosController.php index 69621f0..358204b 100644 --- a/application/controllers/BootosController.php +++ b/application/controllers/BootosController.php @@ -25,11 +25,11 @@ class BootosController extends Zend_Controller_Action if ($createbootosForm->isValid($_POST)) { $bootos = new Application_Model_BootOs($_POST); + $bootos->setMembershipID('1'); if($bootos->getConfigID() == '') $bootos->setConfigID(NULL); $bootosmapper = new Application_Model_BootOsMapper(); - $date = new DateTime(); - $bootos->setCreated($date->getTimestamp()); + $bootos->setCreated(time()); try { $bootosmapper->save($bootos); @@ -68,11 +68,11 @@ class BootosController extends Zend_Controller_Action if ($editbootosForm->isValid($_POST)) { $bootos = new Application_Model_BootOs($_POST); + $bootos->setMembershipID('1'); if($bootos->getConfigID() == '') $bootos->setConfigID(NULL); $bootosmapper = new Application_Model_BootOsMapper(); - $date = new DateTime(); - $bootos->setCreated($date->getTimestamp()); + $bootos->setCreated(time()); $bootos->setID($bootosID); try { -- cgit v1.2.3-55-g7522