Commit 4923552a authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix

parent 060cd3f5
......@@ -126,10 +126,14 @@ while (list($index, $aggregate) = each($ams)) {
# to confuse users.
if ($reservable_nodes) {
foreach ($reservable_nodes as $node_id => $type) {
# There will not be a type extry if its zero (all nodes of
# that type are "reservable nodes")
if (array_key_exists($type, $typeinfo)) {
$count = $typeinfo[$type]["count"];
$typeinfo[$type]["count"] = $count - 1;
}
}
}
$amlist[$urn] = array("urn" => $urn,
"name" => $am,
......
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