Permalink
Browse files

MDL-27148 whitespace fix

  • Loading branch information...
1 parent 60bc533 commit 507ccf1c4b27be5e23eef8e8e180dc287ad3d2b0 @stronk7 stronk7 committed Apr 17, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 auth/db/auth.php
View
@@ -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);
@@ -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

0 comments on commit 507ccf1

Please sign in to comment.