Commit 1c8c6e3b authored by Leigh Stoller's avatar Leigh Stoller

Fix some php warnings/errors.

parent 717dc2cb
......@@ -32,6 +32,7 @@ if (! $isadmin) {
# Verify page arguments.
#
$optargs = OptionalPageArguments("selected", PAGEARG_ARRAY,
"remap", PAGEARG_ARRAY,
"delete", PAGEARG_STRING,
"calc", PAGEARG_STRING,
"create", PAGEARG_STRING,
......@@ -219,7 +220,7 @@ if (isset($research)) {
}
}
foreach ($mac_list as $mac => $switchport) {
if ($switchport["switch"]) {
if (isset($switchport["switch"])) {
$extra_set = "";
if ($ELABINELAB) {
......
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