Skip to content

Conversation

@pauln
Copy link
Contributor

@pauln pauln commented May 24, 2016

$error_message was undefined if there was no error, as it wasn't being initialised. Later in the function, it's compared to an empty string, so should be initialised to that value.

The second commit makes this function more readable by making the indentation consistent (and conform to Moodle coding style); the rest of locallib.php could do with similar treatment, but I've only fixed the indentation in the function I was already working on for now.

pauln added 2 commits May 25, 2016 09:37
$error_message was undefined if there was no error, as it wasn't being
initialised.  Later in the function, it's compared to an empty string, so
should be initialised to that value.
The indentation in the echolink_ess_oauth_seamless_login function was
inconsistent (a mix of tabs and spaces, as well as different amounts of
indentation on different lines), which made it hard to read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant