From 507ccf1c4b27be5e23eef8e8e180dc287ad3d2b0 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 18 Apr 2011 01:47:11 +0200 Subject: [PATCH] MDL-27148 whitespace fix --- auth/db/auth.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/auth/db/auth.php b/auth/db/auth.php index 566234f4638..8f60cc32ca9 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -228,9 +228,9 @@ class auth_plugin_db extends auth_plugin_base { // 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 { @@ -238,7 +238,7 @@ class auth_plugin_db extends auth_plugin_base { 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 @@ class auth_plugin_db extends auth_plugin_base { // 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