summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/EventController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index c25f1cd..51fdf1e 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -512,11 +512,13 @@ class EventController extends Zend_Controller_Action
$evid = $this->getRequest()->getParam('evid');
$evstart = $this->getRequest()->getParam('evstart');
$evend = $this->getRequest()->getParam('evend');
-
+ var_dump($evend);
+
if ($evid!=null) {
$this->eventMapper->find($evid,$event); //locate the event in the DB
$event->setStart(date('Y-m-d H:i:s', strtotime(substr($evstart, 0, 24))));
- $event->setEnd(date('Y-m-d H:i:s', strtotime(substr($evend, 0, 24))));
+ if($evend!=null){
+ $event->setEnd(date('Y-m-d H:i:s', strtotime(substr($evend, 0, 24))));}
$this->eventMapper->save($event); //save the event with the new data
}