Commit c2f14814 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fixed my naughty whitespace

parent d7f2da4f
......@@ -61,8 +61,12 @@ function adminusers_submit($values) {
$table = get_config('dbprefix') . 'usr';
db_begin();
execute_sql('UPDATE ' . $table . ' SET admin = 0 WHERE admin = 1');
execute_sql('UPDATE ' . $table . ' SET admin = 1 WHERE id IN (' . join(',', $values['users']) . ')');
execute_sql('UPDATE ' . $table . '
SET admin = 0
WHERE admin = 1');
execute_sql('UPDATE ' . $table . '
SET admin = 1
WHERE id IN (' . join(',', $values['users']) . ')');
db_commit();
$SESSION->add_ok_msg(get_string('adminusersupdated', 'admin'));
redirect(get_config('wwwroot') . 'admin/usermanagement/adminusers.php');
......
......@@ -60,8 +60,12 @@ function staffusers_submit($values) {
$table = get_config('dbprefix') . 'usr';
db_begin();
execute_sql('UPDATE ' . $table . ' SET staff = 0 WHERE staff = 1');
execute_sql('UPDATE ' . $table . ' SET staff = 1 WHERE id IN (' . join(',', $values['users']) . ')');
execute_sql('UPDATE ' . $table . '
SET staff = 0
WHERE staff = 1');
execute_sql('UPDATE ' . $table . '
SET staff = 1
WHERE id IN (' . join(',', $values['users']) . ')');
db_commit();
$SESSION->add_ok_msg(get_string('staffusersupdated', 'admin'));
redirect(get_config('wwwroot') . 'admin/usermanagement/staffusers.php');
......
Supports Markdown
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