Skip to content

Commit

Permalink
Merge branch 'wip-MDL-42762-master' of git://github.com/abgreeve/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 12, 2013
2 parents 0ac5863 + b63f542 commit b8a598a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/editlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager

// Display user name fields that are not currenlty enabled here if there are any.
$disabledusernamefields = useredit_get_disabled_name_fields($enabledusernamefields);
if (isset($disabledusernamefields[0])) {
if (count($disabledusernamefields) > 0) {
$mform->addElement('header', 'moodle_additional_names', get_string('additionalnames'));
foreach ($disabledusernamefields as $allname) {
$mform->addElement('text', $allname, get_string($allname), 'maxlength="100" size="30"');
Expand Down

0 comments on commit b8a598a

Please sign in to comment.