projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed get_post() support for numeric fields.
[fa-stable.git]
/
includes
/
ui
/
ui_controls.inc
diff --git
a/includes/ui/ui_controls.inc
b/includes/ui/ui_controls.inc
index 52f417bb486f92f253faa84594079cda1a71759b..c2dbae05a715440633230fafe231d2850d931d24 100644
(file)
--- a/
includes/ui/ui_controls.inc
+++ b/
includes/ui/ui_controls.inc
@@
-22,7
+22,7
@@
function get_post($name, $dflt='')
$ret = array();
foreach($name as $key => $dflt)
if (!is_numeric($key)) {
$ret = array();
foreach($name as $key => $dflt)
if (!is_numeric($key)) {
- $ret[$key] = is_
float
($dflt) ? input_num($key, $dflt) : get_post($key, $dflt);
+ $ret[$key] = is_
numeric
($dflt) ? input_num($key, $dflt) : get_post($key, $dflt);
} else {
$ret[$dflt] = get_post($dflt, null);
}
} else {
$ret[$dflt] = get_post($dflt, null);
}