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:
81f8e0f
)
MDL-27375 add missing lowercasing of external column names
author
Petr Skoda
<commits@skodak.org>
Sat, 2 Jul 2011 13:16:02 +0000
(15:16 +0200)
committer
Petr Skoda
<commits@skodak.org>
Sat, 2 Jul 2011 13:16:02 +0000
(15:16 +0200)
Credit goes to Gail Preuninger.
enrol/database/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/database/lib.php
b/enrol/database/lib.php
index
818b05e
..
987e0e7
100644
(file)
--- a/
enrol/database/lib.php
+++ b/
enrol/database/lib.php
@@
-111,6
+111,7
@@
class enrol_database_plugin extends enrol_plugin {
if ($rs = $extdb->Execute($sql)) {
if (!$rs->EOF) {
while ($fields = $rs->FetchRow()) {
+ $fields = array_change_key_case($fields, CASE_LOWER);
$fields = $this->db_decode($fields);
if (empty($fields[$coursefield])) {