Skip to content
Snippets Groups Projects
Commit 9a637a35 authored by Robert Anderson's avatar Robert Anderson
Browse files

* Added admin group create function

* Check type is defined before we try access it in the params
parent 6a619d1f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment