All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 039ec0d0 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fixes.

parent 9d0d85dc
...@@ -56,6 +56,17 @@ if (isset($selected)) { ...@@ -56,6 +56,17 @@ if (isset($selected)) {
$selected_nodes = array(); $selected_nodes = array();
} }
# Remove these to make the code below easier.
if (isset($newtype) && $newtype == "") {
unset($newtype);
}
if (isset($newprefix) && $newprefix == "") {
unset($newprefix);
}
if (isset($addnumber) && $addnumber == "") {
unset($addnumber);
}
# #
# Build up a handy little clause for these nodes to be used in WHEREs # Build up a handy little clause for these nodes to be used in WHEREs
# #
...@@ -282,7 +293,7 @@ if (isset($newprefix) || isset($addnumber)) { ...@@ -282,7 +293,7 @@ if (isset($newprefix) || isset($addnumber)) {
preg_match("/^(.*-)([a-zA-Z])$/",$name,$matches)) { preg_match("/^(.*-)([a-zA-Z])$/",$name,$matches)) {
$prefix = $matches[1]; $prefix = $matches[1];
$number = $matches[2]; $number = $matches[2];
if ($addnumber) { if (isset($addnumber)) {
if (is_numeric($number)) { if (is_numeric($number)) {
$number = $number + $addnumber; $number = $number + $addnumber;
} else { } else {
......
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