mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL
This commit is contained in:
parent
629e12fd81
commit
b3df176457
10 changed files with 29 additions and 26 deletions
|
@ -160,7 +160,7 @@ class enrol_paypal_plugin extends enrol_plugin {
|
|||
echo '<p>'.get_string('nocost', 'enrol_paypal').'</p>';
|
||||
} else {
|
||||
|
||||
if ($USER->username == 'guest') { // force login only for guest user, not real users with guest role
|
||||
if (isguestuser()) { // force login only for guest user, not real users with guest role
|
||||
if (empty($CFG->loginhttps)) {
|
||||
$wwwroot = $CFG->wwwroot;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue