mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-53169 database: use bound empty strings for cross-db
This commit is contained in:
parent
0e57965154
commit
7ab0993265
1 changed files with 2 additions and 1 deletions
|
@ -658,7 +658,8 @@ function enrol_get_my_courses($fields = null, $sort = 'visible DESC,sortorder AS
|
||||||
$courseidsql .= "
|
$courseidsql .= "
|
||||||
SELECT DISTINCT e.courseid
|
SELECT DISTINCT e.courseid
|
||||||
FROM {enrol} e
|
FROM {enrol} e
|
||||||
WHERE e.enrol = 'guest' AND e.password = '' AND e.status = :enabled2";
|
WHERE e.enrol = 'guest' AND e.password = :emptypass AND e.status = :enabled2";
|
||||||
|
$params['emptypass'] = '';
|
||||||
$params['enabled2'] = ENROL_INSTANCE_ENABLED;
|
$params['enabled2'] = ENROL_INSTANCE_ENABLED;
|
||||||
|
|
||||||
// Include courses where the current user is currently using guest access (may include
|
// Include courses where the current user is currently using guest access (may include
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue