Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc28220
)
MDL-22540 portfoliolib - cross db text comparison requires sql_compare_text() to...
author
Eloy Lafuente
<stronk7@moodle.org>
Sun, 23 May 2010 09:23:05 +0000
(09:23 +0000)
committer
Eloy Lafuente
<stronk7@moodle.org>
Sun, 23 May 2010 09:23:05 +0000
(09:23 +0000)
lib/portfoliolib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/portfoliolib.php
b/lib/portfoliolib.php
index
661b9c1
..
c0f2aac
100644
(file)
--- a/
lib/portfoliolib.php
+++ b/
lib/portfoliolib.php
@@
-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));
}