$usergroup->insert();
$bugsys->input_clean('custom', TYPE_UINT);
- foreach ($bugsys->in['custom'] AS $fieldid => $mask)
+ if (is_array($bugsys->in['custom']))
{
- $values[] = $usergroup->insertid . ", " . $bugsys->clean($fieldid, TYPE_UINT) . ", " . $mask;
+ foreach ($bugsys->in['custom'] AS $fieldid => $mask)
+ {
+ $values[] = $usergroup->insertid . ", " . $bugsys->clean($fieldid, TYPE_UINT) . ", " . $mask;
+ }
}
if (is_array($values))
$usergroup->update();
$bugsys->input_clean('custom', TYPE_UINT);
- foreach ($bugsys->in['custom'] AS $fieldid => $mask)
+ if (is_array($bugsys->in['custom']))
{
- $values[] = $usergroup->values['usergroupid'] . ", " . $bugsys->clean($fieldid, TYPE_UINT) . ", " . $mask;
+ foreach ($bugsys->in['custom'] AS $fieldid => $mask)
+ {
+ $values[] = $usergroup->values['usergroupid'] . ", " . $bugsys->clean($fieldid, TYPE_UINT) . ", " . $mask;
+ }
}
if (is_array($values))
- Get rid of a foreach() warning if there are no products [admin/product.php#317]
- If no custom fields were setup, an empty query error would be thrown [newreport.php#130]
- If no custom fields were present, adding an automation would fail [admin/automation.php#74]
+- Remove a warning when saving a usergroup and there are no custom fields present [admin/usergroup.php#221]
1.1.0 Release Candidate 1
===============================