--- moodle_standard/user/edit_form.php 2016-01-09 05:19:58.000000000 +0530 +++ moodle/user/edit_form.php 2016-04-04 15:50:06.979089271 +0530 @@ -101,10 +101,7 @@ if ($user = $DB->get_record('user', array('id' => $userid))) { - // Remove description. - if (empty($user->description) && !empty($CFG->profilesforenrolledusersonly) && !$DB->record_exists('role_assignments', array('userid' => $userid))) { - $mform->removeElement('description_editor'); - } + // Print picture. $context = context_user::instance($user->id, MUST_EXIST);