Merged changes form main trunk up to 2.2.4
[fa-stable.git] / includes / ui / ui_input.inc
index b2a49e2b90a447cdb5848382d2f922ccd0ac205e..b27f5fde11ae787a486fc4fa73ecce2556dca591 100644 (file)
@@ -75,7 +75,7 @@ function simple_page_mode($numeric_id = true)
 //
 //     Read numeric value from user formatted input
 //
-function input_num($postname=null, $dflt=null)
+function input_num($postname=null, $dflt=0)
 {
        if (!isset($_POST[$postname]) || $_POST[$postname] == "")
                return $dflt;