Git commits in Moodle 2.2.6 by Dan Marsden

commit bc7088d881874dd9bab2f5728bee415ff90eedb2
Author: Dan Marsden <dan@danmarsden.com>
Date:   Fri, 21 Sep 2012 17:52:42 +0800
Tag:    v2.2.6

MDL-35562 enrol_database: enrolment_sync - don't halt sync on failed search for course.

commit 221309802aacaf6f0928519fd38e4f83576cb665
Author: Dan Marsden <dan@danmarsden.com>
Date:   Fri, 21 Sep 2012 09:41:43 +0800
Tag:    v2.2.6

MDL-35557 enrol/database: use distinct call when getting list of courses that should be added.

commit 88c5506d1bc73c38ee224f615cfb1b3fd2de854b
Author: Dan Marsden <dan@danmarsden.com>
Date:   Thu, 06 Sep 2012 14:47:30 +0800
Tag:    v2.2.6

MDL-35123 SCORM: cleaner version of get_last_attempt and get_last_completed_attempt, fixes support for MS Sql driver

commit b8b00afaf38728330b4b9658324d64b863640b7e
Author: Dan Marsden <dan@danmarsden.com>
Date:   Tue, 04 Sep 2012 07:01:06 +0800
Tag:    v2.2.6

MDL-35208 mod_choice: respect order of options when running backup