Git commits in Moodle 2.6.6 by David Curry

commit 3ff84f56eb669a2f157b965de5e06a667cc74f41
Author: David Curry <david.curry@totaralms.com>
Date:   Wed, 03 Sep 2014 11:17:08 +0800
Tag:    v2.6.6

MDL-47076 badges: Add checks to user fields during badges restoration