diff options
Diffstat (limited to 'application/forms/BootmenuEntriesAdd.php')
| -rw-r--r-- | application/forms/BootmenuEntriesAdd.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/application/forms/BootmenuEntriesAdd.php b/application/forms/BootmenuEntriesAdd.php index 93b87f1..9caa90f 100644 --- a/application/forms/BootmenuEntriesAdd.php +++ b/application/forms/BootmenuEntriesAdd.php @@ -22,9 +22,11 @@ class Application_Form_BootmenuEntriesAdd extends Zend_Form $bootosfield = $this->createElement('select','bootosID'); $bootosfield ->setLabel('BootOs:'); - foreach($this->bootoslist as $bootos => $b){ - $bootosfield->addMultiOption($b->getID(), $b->getTitle()); - } + if(count($this->bootoslist)>0){ + foreach($this->bootoslist as $bootos => $b){ + $bootosfield->addMultiOption($b->getID(), $b->getTitle()); + } + } $bootosfield->setRegisterInArrayValidator(false); $this->addElement($bootosfield); @@ -48,10 +50,10 @@ class Application_Form_BootmenuEntriesAdd extends Zend_Form )); $orderfield = $this->createElement('select','order'); - $orderfield ->setLabel('Order:'); + $orderfield ->setLabel('Position:'); for ($i = 0; $i <= $this->maxorder; $i++) { - $orderfield->addMultiOption($i, $i); + $orderfield->addMultiOption($i, $i+1); } $orderfield->setRegisterInArrayValidator(false); $this->addElement($orderfield); |
