|
[
Permalink
| « Hide
]
Marty Lampard added a comment - 06/Dec/06 04:15 AM
This is also broken with the postgres driver - Also the external authentication module is broken - line 108 and 110 of auth/db/lib.php - simply change to associative array index and the problem is resolved. One wonders how many other places this has been missed???
Here's a patch file to fix both the enrol.php and lib.php files. To patch, change into the moodle root, copy the above file into that directory, then run:
patch -p1 < external_db_associative_array_fix-05dec2006.patch Good luck... I can confirm that I'm hitting this issue when using Postgres7 as the database. I independently came up with much the same patch, but only for the enrollment part as I don't use DB based authentication. My patch (just for enrol/database/enrol.php) uses the Fields() function call which seems to be more in-line with how things are done throughout the rest of the file.
Unified patch as in the reported bug.
This has been fixed by the fix to
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||