mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -67,7 +67,7 @@ class enrolment_plugin_authorize
|
|||
echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize'));
|
||||
}
|
||||
|
||||
if ($USER->username == 'guest') { // only real guest user, not for users with guest role
|
||||
if (isguestuser()) { // only real guest user, not for users with guest role
|
||||
$curcost = get_course_cost($course);
|
||||
echo '<div class="mdl-align">';
|
||||
echo '<p>'.get_string('paymentrequired').'</p>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue