Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARGGG. I spent 1 hour discovering where was the error!!
Under PHP5 we must cast objects to arrays to use them in loops. But what is really annoying is that, instead of return an error, PHP returns the 1st element! This should close bug 2581. (http://moodle.org/bugs/bug.php?op=show&bugid=2581)
- Loading branch information