X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=blobdiff_plain;f=includes%2Fui%2Fui_controls.inc;h=c2dbae05a715440633230fafe231d2850d931d24;hp=52f417bb486f92f253faa84594079cda1a71759b;hb=df660a601cabb0afe7f3246884f16207b9a0c314;hpb=1723f5fc5b851f20ae52da2e4a0104437f1a97b4 diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index 52f417bb..c2dbae05 100644 --- 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[$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); }