diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-28 23:31:31 -0400 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-28 23:31:31 -0400 |
commit | f0859d4bbcf66e7ac5c42aae828058a98fa6355e (patch) | |
tree | 95c38d7f52ecec4715ec5e966cd0309f69e3b609 /inc/form.php | |
parent | 8108113c244529ec54f11271a6a15e3d1e0a048f (diff) | |
download | rpg-f0859d4bbcf66e7ac5c42aae828058a98fa6355e.tar.gz rpg-f0859d4bbcf66e7ac5c42aae828058a98fa6355e.tar.bz2 |
Input wrapper for html forms
Diffstat (limited to 'inc/form.php')
-rw-r--r-- | inc/form.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/form.php b/inc/form.php index e74c52c5d..bdf520a2e 100644 --- a/inc/form.php +++ b/inc/form.php @@ -295,8 +295,9 @@ class Doku_Form { */ function addRadioSet($name, $entries) { - $value = (isset($_POST[$name]) && isset($entries[$_POST[$name]])) ? - $_POST[$name] : key($entries); + global $INPUT; + $value = (array_key_exists($INPUT->post->str($name), $entries)) ? + $INPUT->str($name) : key($entries); foreach($entries as $val => $cap) { $data = ($value === $val) ? array('checked' => 'checked') : array(); $this->addElement(form_makeRadioField($name, $val, $cap, '', '', $data)); |