Skip to content

Commit

Permalink
MDL-27148 whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Apr 17, 2011
1 parent 97fefd2 commit 20d8d5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions auth/db/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,17 @@ function sync_users($do_updates=false) {

// find obsolete users
if (count($userlist)) {
list($notin_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u', false);
$params['authtype'] = $this->authtype;
$sql = "SELECT u.id, u.username, u.email, u.auth
list($notin_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u', false);
$params['authtype'] = $this->authtype;
$sql = "SELECT u.id, u.username, u.email, u.auth
FROM {user} u
WHERE u.auth=:authtype AND u.deleted=0 AND u.username $notin_sql";
} else {
$sql = "SELECT u.id, u.username, u.email, u.auth
FROM {user} u
WHERE u.auth=:authtype AND u.deleted=0";
$params = array();
$params['authtype'] = $this->authtype;
$params['authtype'] = $this->authtype;
}
$remove_users = $DB->get_records_sql($sql, $params);

Expand Down Expand Up @@ -290,7 +290,7 @@ function sync_users($do_updates=false) {
// only go ahead if we actually
// have fields to update locally
if (!empty($updatekeys)) {
list($in_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u', true);
list($in_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u', true);
$params['authtype'] = $this->authtype;
$sql = "SELECT u.id, u.username
FROM {user} u
Expand Down

0 comments on commit 20d8d5c

Please sign in to comment.