Merge branch 'MDL-58908-master' of git://github.com/damyon/moodle

This commit is contained in:
Jun Pataleta 2017-06-06 17:15:41 +08:00
commit 1ff50be21f

View File

@ -247,6 +247,10 @@ class auth extends \auth_plugin_base {
if (!empty($user->picture)) { if (!empty($user->picture)) {
return false; return false;
} }
if (!empty($CFG->enablegravatar)) {
return false;
}
$picture = $this->get_static_user_picture(); $picture = $this->get_static_user_picture();
if (empty($picture)) { if (empty($picture)) {
return false; return false;