Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
039ec0d0
Commit
039ec0d0
authored
Mar 26, 2007
by
Leigh B. Stoller
Browse files
Minor fixes.
parent
9d0d85dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/newnodes_list.php3
View file @
039ec0d0
...
...
@@ -56,6 +56,17 @@ if (isset($selected)) {
$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
#
...
...
@@ -282,7 +293,7 @@ if (isset($newprefix) || isset($addnumber)) {
preg_match
(
"/^(.*-)([a-zA-Z])$/"
,
$name
,
$matches
))
{
$prefix
=
$matches
[
1
];
$number
=
$matches
[
2
];
if
(
$addnumber
)
{
if
(
isset
(
$addnumber
)
)
{
if
(
is_numeric
(
$number
))
{
$number
=
$number
+
$addnumber
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment