Git commits in Moodle 3.6.5 by Peter

commit 086dd3c26912482cc8349c8f58e597d5fe8ee01d
Author: Peter <peter@moodle.com>
Date:   Fri, 31 May 2019 09:18:21 +0800
Tag:    v3.6.5

MDL-65803 recentlyaccesseditems: Restrict response to valid courses.

commit fb4769c30a41479aee88edc93f8656472841d349
Author: Peter <peterrolanddias@gmail.com>
Date:   Wed, 22 May 2019 18:51:49 +0800
Tag:    v3.6.5

MDL-55997 core_reports: modify user stats query to fix duplicate rows