Git commits in Moodle 3.10.x by Marty Gilbert

commit 5ef3241ae395d692f4754392848752d19bca511a
Author: Marty Gilbert <martygilbert@gmail.com>
Date:   Sat, 20 Jun 2020 02:57:31 +0800
Tag:    v3.10.4

MDL-69102 badge: Fixes broken WHERE clause