summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-20 16:59:29 +0200
committerBjörn Geiger2011-10-20 16:59:29 +0200
commit54a3c83fa9a5e380804111671b019d6c15df9b04 (patch)
tree5361ef7ed1c4cef0eca2dd2d650666c23a3e7c76 /application/forms/EventEdit.php
parentjar update (diff)
downloadpoolctrl-54a3c83fa9a5e380804111671b019d6c15df9b04.tar.gz
poolctrl-54a3c83fa9a5e380804111671b019d6c15df9b04.tar.xz
poolctrl-54a3c83fa9a5e380804111671b019d6c15df9b04.zip
Korrektur!
Diffstat (limited to 'application/forms/EventEdit.php')
-rwxr-xr-xapplication/forms/EventEdit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index 6866dd2..00c3f9a 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -112,7 +112,9 @@ class Application_Form_EventEdit extends Zend_Form
}
$eventcategoryfield->setRegisterInArrayValidator(false);
- $eventcategoryfield->setValue($this->params['category']);
+ if(isset($this->params['category'])) {
+ $eventcategoryfield->setValue($this->params['category']);
+ }
$eventcategoryfield->setAttrib("disabled", true);
$eventcategoryfield->setAttrib('onchange', "editeventcategoryfieldChanged('category');");
$this->addElement($eventcategoryfield);
@@ -153,7 +155,7 @@ class Application_Form_EventEdit extends Zend_Form
'value' => date ('m/d/Y h:i a', strtotime( $this->params['end'])),
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
- } else if($this->params['categoryLabel'] != "Boot" && $this->params['categoryLabel'] != "Shutdown") {
+ } else if(isset($this->params['categoryLabel']) && $this->params['categoryLabel'] != "Boot" && $this->params['categoryLabel'] != "Shutdown") {
$this->addElement('text', 'end', array(
'filters' => array('StringTrim'),
'validators' => array(