diff --git a/webgui/ajax.php b/webgui/ajax.php index 08f484e9db7b40224b18aa5ee2d6df570d97ce37..98b1bd50bfb40e801a0e85c66db4defac3723671 100644 --- a/webgui/ajax.php +++ b/webgui/ajax.php @@ -113,14 +113,14 @@ if (count($items) > 1) { $array_pos = $items[0]; $array_item = $items[1]; - $array_type = $items[2]; # Initialize array if (!isset($soapParams[$array_pos])) { $soapParams[$array_pos] = array(); } # Check if we have an explicit type - if (isset($array_type)) { + if (isset($items[2])) { + $array_type = $items[2]; # Check type if ($array_type == "boolean") { # Checkboxes/booleans are undefined if false @@ -146,9 +146,17 @@ } switch ($function) { + case "createAdminGroup": + + $res = createAdminGroup($soapParams); + if (isset($res)) { + ajaxException($res); + } + + break; + case "removeAdminGroup": - print_r($soapParams); $res = removeAdminGroup($soapParams); if (isset($res)) { ajaxException($res);