Commit b251fb14 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to argument handling reported by Mike.

parent 3d6c8e2f
......@@ -22,8 +22,8 @@ if (! $isadmin) {
USERERROR("You do not have permission to edit node types!", 1);
}
$reqargs = RequiredPageArguments("node_type", PAGEARG_STRING);
$optargs = OptionalPageArguments("submit", PAGEARG_STRING,
"node_type", PAGEARG_STRING,
"new_type", PAGEARG_STRING,
"formfields", PAGEARG_ARRAY,
"deletes", PAGEARG_ARRAY,
......@@ -344,7 +344,7 @@ if (isset($new_type)) {
$attribute_deletes[$entry['attrkey']] = "";
}
}
else {
elseif (isset($node_type)) {
#
# Editing an existing type - suck the current info out of the
# database.
......@@ -375,6 +375,10 @@ else {
$attribute_deletes[$row['attrkey']] = "";
}
}
else {
PAGEARGERROR("Must provide one of node_type or new_type");
return;
}
#
# We need a list of osids and imageids.
......
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