summaryrefslogtreecommitdiff
path: root/modules/forge/libraries/Forge.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forge/libraries/Forge.php')
-rw-r--r--modules/forge/libraries/Forge.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/forge/libraries/Forge.php b/modules/forge/libraries/Forge.php
index d9da4c7d..9179aaeb 100644
--- a/modules/forge/libraries/Forge.php
+++ b/modules/forge/libraries/Forge.php
@@ -277,7 +277,8 @@ class Forge_Core {
{
foreach ($this->hidden as $input)
{
- $hidden[$input->name] = $input->value;
+ $hidden['name'] = $input->name;
+ $hidden['value'] = $input->value;
}
}
@@ -298,8 +299,11 @@ class Forge_Core {
}
// Set the form open and close
- $form->open = form::$form_type(arr::remove('action', $this->attr), $this->attr, $hidden);
- $form->close = form::close();
+ $form->open = form::$form_type(arr::remove('action', $this->attr), $this->attr);
+ foreach ($this->hidden as $hidden) {
+ $form->open .= form::hidden($hidden->name, $hidden->value);
+ }
+ $form->close = "</form>";
// Set the inputs
$form->inputs = $this->inputs;