get_my_courses broken with Moodle 2.4.3 when not admin see https://moodle.org/mod/forum/discuss.php?d=226161 + some troubles when Moodle is in full debug mode with display_errors on