Commit e60a01c7 authored by Robert Ricci's avatar Robert Ricci
Browse files

Make sure to set counts to 0 instead of "" if there are no nodes of

a type.
parent dae5b2b0
......@@ -200,6 +200,12 @@ function SPITFORM($advanced,$formfields, $errors = array()) {
while (list($junk,$type) = each($plab_types)) {
$descr = $plab_type_descr[$type];
list($acount,$asites) = $plab_counts[$type];
if (!$acount) {
$acount = 0;
}
if (!$asites) {
$asites = 0;
}
if ($formfields[type] && ($formfields[type] == $type)) {
$selected = "selected";
} 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