mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-22540 portfoliolib - cross db text comparison requires sql_compare_text() to be used
This commit is contained in:
parent
dc28220096
commit
b11bbdd16d
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ function portfolio_instances($visibleonly=true, $useronly=true) {
|
|||
if ($useronly) {
|
||||
$sql .= ' AND id NOT IN (
|
||||
SELECT instance FROM {portfolio_instance_user}
|
||||
WHERE userid = ? AND name = ? AND value = ?
|
||||
WHERE userid = ? AND name = ? AND ' . $DB->sql_compare_text('value') . ' = ?
|
||||
)';
|
||||
$values = array_merge($values, array($USER->id, 'visible', 0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue