From 5171723d0eb419fa7798ccd454e92fefb54268b1 Mon Sep 17 00:00:00 2001 From: Andrew Hancox Date: Tue, 3 Oct 2017 11:25:41 +0100 Subject: [PATCH] Fix pre-existing travis CI failures --- auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.php b/auth.php index 423ce43..a356ad0 100644 --- a/auth.php +++ b/auth.php @@ -30,6 +30,7 @@ use auth_userkey\userkey_manager_interface; require_once($CFG->libdir . "/externallib.php"); require_once($CFG->libdir.'/authlib.php'); require_once($CFG->dirroot . '/user/lib.php'); +require_once($CFG->dirroot . '/lib/classes/user.php'); /** * User key authentication plugin. @@ -348,7 +349,7 @@ class auth_plugin_userkey extends auth_plugin_base { $requiredfieds = ['username', 'email', 'firstname', 'lastname']; $missingfields = []; - foreach($requiredfieds as $requiredfied) { + foreach ($requiredfieds as $requiredfied) { if (empty($user[$requiredfied])) { $missingfields[] = $requiredfied; }