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

Minor bug fix.

parent f6bc82de
......@@ -404,7 +404,7 @@ function Do_RequestExtension()
goto bad;
}
$wanted = $ajax_args["howlong"];
if (preg_match("/^\d+$/", $wanted)) {
if (is_numeric($wanted)) {
if ($wanted < 1) {
SPITAJAX_ERROR(1, "Hours must be an integer greater then 1");
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