Commit 5b5cf64c authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent f6bc82de
...@@ -404,7 +404,7 @@ function Do_RequestExtension() ...@@ -404,7 +404,7 @@ function Do_RequestExtension()
goto bad; goto bad;
} }
$wanted = $ajax_args["howlong"]; $wanted = $ajax_args["howlong"];
if (preg_match("/^\d+$/", $wanted)) { if (is_numeric($wanted)) {
if ($wanted < 1) { if ($wanted < 1) {
SPITAJAX_ERROR(1, "Hours must be an integer greater then 1"); SPITAJAX_ERROR(1, "Hours must be an integer greater then 1");
goto bad; goto bad;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment