Commit 06a6404c authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix; use is_numeric() for PAGEARG_INTEGER.

parent 92cecdca
......@@ -709,7 +709,6 @@ function ValidateArgument($name, $arg)
PAGEARGERROR("Invalid argument for '$name': $arg");
break;
case PAGEARG_INTEGER:
case PAGEARG_GUID:
case PAGEARG_VERS:
case PAGEARG_INSTANCE:
......@@ -726,6 +725,7 @@ function ValidateArgument($name, $arg)
PAGEARGERROR("Invalid argument for '$name': $arg");
break;
case PAGEARG_INTEGER:
case PAGEARG_NUMERIC:
if (is_numeric($arg)) {
return 1;
......
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