Make delete instance / domain checkbox actually remove the domain. DB still needs to be dropped manually.

This commit is contained in:
Nathan Gray 2009-07-06 22:20:57 +00:00
parent 3307109a1c
commit d160101c65

View File

@ -168,7 +168,12 @@ function check_header_form()
// setting the domain settings from the posted content
foreach($_POST['domains'] as $key => $domain)
{
if ($_POST['deletedomain'][$key]) continue; // domain deleted
if ($_POST['deletedomain'][$key])
{
// Need to actually remove the domain. Drop the DB manually.
unset($GLOBALS['egw_domain'][$domain]);
continue;
}
foreach($_POST['setting_'.$key] as $name => $value)
{