Git commits in Moodle 2.2.x by Hugh Davenport

commit 2719e7c8f9af5db0e588064d8a5ce4429f838f63
Author: Hugh Davenport <hugh@catalyst.net.nz>
Date:   Tue, 10 Apr 2012 01:03:45 +0800
Tag:    v2.2.3

MDL-32308 Fix error when testing id of guest user