Commit 1c8c6e3b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix some php warnings/errors.

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