Git commits in Moodle 1.6.3 by ethem

commit 4ab16d477d5c6a810c4861dffd1d1f1479de42c3
Author: ethem <ethem>
Date:   Wed, 04 Oct 2006 03:35:57 +0800
Tag:    v1.6.3

Put back last commit. Some functions check $extra->id.

commit 2e633ad500e12b275e4aff3d2079ca11a2a2d0f5
Author: ethem <ethem>
Date:   Wed, 04 Oct 2006 02:16:19 +0800
Tag:    v1.6.3

If an error occures, id returns 0. The user, who will be sent email, may be confused for $record->id=0.

commit cfca034aedeb8b9924314b7b7818ec1a8249d23b
Author: ethem <ethem>
Date:   Tue, 03 Oct 2006 17:00:20 +0800
Tag:    v1.6.3

No need extra $order->status check. These functions expired() and settled() do it for us.