diff --git a/group/index.php b/group/index.php index 336740dc993..7c1c2d1ec76 100644 --- a/group/index.php +++ b/group/index.php @@ -143,9 +143,9 @@ if ($success) {

- $name\n"; + echo "\n"; $count++; } } diff --git a/group/lib/clientlib.js b/group/lib/clientlib.js index 66689840b0f..8e20f0bc1b4 100644 --- a/group/lib/clientlib.js +++ b/group/lib/clientlib.js @@ -27,32 +27,33 @@ function UpdatableGroupsCombo(wwwRoot, courseId) { } } - if (groupsComboEl) { - // Clear the groups combo box. - while (groupsComboEl.firstChild) { - groupsComboEl.removeChild(groupsComboEl.firstChild); - } - if (o.responseText) { - //var groups = eval("("+o.responseText+")"); - var groups = eval(o.responseText); + if (groupsComboEl && o.responseText) { + //var groups = eval("("+o.responseText+")"); + var groups = eval(o.responseText); - // Populate the groups combo box. - for (var i=0; i