aboutsummaryrefslogtreecommitdiff
path: root/auth.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-17 09:30:39 +0300
committerValentin Popov <info@valentineus.link>2017-10-17 09:30:39 +0300
commit1c9718fe9d842a042dbd53e6b1f67a0977372d54 (patch)
tree0c736b6d7e9859a7adf27d46456fa4bd6c687f62 /auth.php
parentf5b3f85c57915178a57bbe4b360ee58b77588e8e (diff)
downloadauth_link-1c9718fe9d842a042dbd53e6b1f67a0977372d54.tar.xz
auth_link-1c9718fe9d842a042dbd53e6b1f67a0977372d54.zip
Correction of stylistic errors
Diffstat (limited to 'auth.php')
-rw-r--r--auth.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth.php b/auth.php
index d41a414..f9c0ed0 100644
--- a/auth.php
+++ b/auth.php
@@ -57,7 +57,7 @@ class auth_plugin_link extends auth_plugin_base {
function user_login($username, $password) {
global $CFG, $DB;
- if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
+ if ($user = $DB->get_record('user', array('username' => $username, 'mnethostid' => $CFG->mnet_localhost_id))) {
return validate_internal_user_password($user, $password);
}
@@ -81,7 +81,7 @@ class auth_plugin_link extends auth_plugin_base {
* @return bool
*/
function is_internal() {
- //we do not know if it was internal or external originally
+ // we do not know if it was internal or external originally
return true;
}
@@ -156,7 +156,7 @@ class auth_plugin_link extends auth_plugin_base {
if (isset($SESSION->wantsurl)) {
$redirect = $SESSION->wantsurl;
- } elseif (isset($_GET['wantsurl'])) {
+ } else if (isset($_GET['wantsurl'])) {
$redirect = htmlspecialchars($_GET['wantsurl']);
} else {
$redirect = $CFG->wwwroot;