|
[
Permalink
| « Hide
]
David Mudrak added a comment - 24/Apr/08 07:13 AM
Patch attached. It adds editing teachers into the $teacherroles. The casting is there because get_roles_with_capability() may return "false" and PHP can't concatenate boolean with array.
Wow, sounds important! Assigning to Petr. Thanks!
Oooops - the previous patch actually broke the upgrade - shame on me. I have removed it and here is (hopefully) good one.
The patch is based on the following PHP casting feature:
"Converting NULL to an array results in an empty array." http://www.php.net/manual/en/language.types.array.php#language.types.array.casting waiting for +2 approval The same patch in unified format (I swear there was a time when MartinD recommended context diff format. But Eclipse guys won
The patch has been discarded. Petr proposed other approach:
I am going to prepare the patch Affected files:
Index: mod/data/restorelib.php Patches based on Petr's proposal attached in subtasks
Ready to be committed. Waiting for +2
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||