Git commits in Moodle 3.3.x by godric

commit 4c4b966a9229e55bddd129ebc460aed5b6e7d4ff
Author: godric <mr.pt.anh.bsb@gmail.com>
Date:   Tue, 29 Nov 2016 15:49:21 +0800
Tag:    v3.3.0-beta

MDL-40132 lib: Using compare rule results in fatal error.