<?php
if (isset($mod)) {
$row = 0;
$update = array();
while (list($key, $value) = each($mod)) {
$update[0]['modify'][$row]['fieldName'] = $key;
$update[0]['modify'][$row]['fieldValue'] = $bugDatabase->db->qstr($value);
$row ++;
}
if ($row) {
// Now we assemble the DB info...
$update[0]['tableName'] = "acl";
$update[0]['action'] = "add";
$bugDatabase->alterDb($update);
}
}
else {
// Assemble the project list.
buginError("Generating projects list", 1);
$projects = generateOptionList($bugDatabase->lists['project'], "id", -1, "optionName");
$groups = generateOptionList($bugDatabase->lists['group'], "id");
$users = generateOptionList($bugDatabase->lists['user'], "uid");
}
?>