Commit 684bb7b2 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Redirect back to add/invite members when no users submitted (bug #628437)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 65af14c2
......@@ -84,7 +84,7 @@ function addmembers_submit(Pieform $form, $values) {
global $SESSION;
if (empty($values['users'])) {
return;
redirect(get_config('wwwroot') . 'group/addmembers.php?id=' . GROUP);
}
db_begin();
......
......@@ -84,7 +84,7 @@ function addmembers_submit(Pieform $form, $values) {
global $SESSION, $group, $USER;
if (empty($values['users'])) {
return;
redirect(get_config('wwwroot') . 'group/inviteusers.php?id=' . GROUP);
}
db_begin();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment