Git commits in Moodle 3.1.x by barrasroger

commit f181e3cf70d68f7f6b6246026b0dc861ad0e3603
Author: barrasroger <roger.barras@htwchur.ch>
Date:   Tue, 18 Apr 2017 17:00:31 +0800
Tag:    v3.1.6

MDL-58116 core_enrol: fix handling of users on different methods