summaryrefslogtreecommitdiffstats
path: root/application/controllers/BootosController.php
diff options
context:
space:
mode:
authormichael pereira2011-03-06 20:12:36 +0100
committermichael pereira2011-03-06 20:12:36 +0100
commit0e017ebdc1edbbf230f0f0160f103c39ef675725 (patch)
treee7848e531d30a01145f2f98d8a3189ea6699c54d /application/controllers/BootosController.php
parentConfig fertig (diff)
downloadpbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.tar.gz
pbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.tar.xz
pbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.zip
datenbank erweitert, BootMenu, Config fertig
Diffstat (limited to 'application/controllers/BootosController.php')
-rw-r--r--application/controllers/BootosController.php8
1 files changed, 4 insertions, 4 deletions
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 {