*** empty log message ***
[fa-stable.git] / includes / ui / ui_input.inc
index 08a4035b518fa3d06a8ab7a0feff03bc20cd22a0..ede685debba9582637a73e97a0eec1e2b2c95ff8 100644 (file)
@@ -71,7 +71,7 @@ function simple_page_mode($numeric_id = true)
 //
 function input_num($postname=null, $dflt=null)
 {
-       if (!isset($_POST[$postname]))
+       if (!isset($_POST[$postname]) || $_POST[$postname] == "")
                return $dflt;
 
     return user_numeric($_POST[$postname]);