Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-44359 fix explode(', ', regressions from MDL-44255
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 7, 2014
1 parent 0a48977 commit c6b44cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
if (has_capability('moodle/course:viewhiddenuserfields', $context)) {
$hiddenfields = array(); // Teachers and admins are allowed to see everything.
} else {
$hiddenfields = array_flip(explode(', ', $CFG->hiddenuserfields));
$hiddenfields = array_flip(explode(',', $CFG->hiddenuserfields));
}

if (isset($hiddenfields['lastaccess'])) {
Expand Down Expand Up @@ -567,7 +567,7 @@
$firstinitial = $table->get_initial_first();
$lastinitial = $table->get_initial_last();
$strall = get_string('all');
$alpha = explode(', ', get_string('alphabet', 'langconfig'));
$alpha = explode(',', get_string('alphabet', 'langconfig'));

// Bar of first initials.

Expand Down Expand Up @@ -627,7 +627,7 @@
if (has_capability('moodle/course:viewhiddenuserfields', $context)) {
$hiddenfields = array();
} else {
$hiddenfields = array_flip(explode(', ', $CFG->hiddenuserfields));
$hiddenfields = array_flip(explode(',', $CFG->hiddenuserfields));
}
$table = new html_table();
$table->attributes['class'] = 'userinfobox';
Expand Down
4 changes: 2 additions & 2 deletions user/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@
if (has_capability('moodle/user:viewhiddendetails', $context)) {
$hiddenfields = array();
} else {
$hiddenfields = array_flip(explode(', ', $CFG->hiddenuserfields));
$hiddenfields = array_flip(explode(',', $CFG->hiddenuserfields));
}

if (has_capability('moodle/site:viewuseridentity', $context)) {
$identityfields = array_flip(explode(', ', $CFG->showuseridentity));
$identityfields = array_flip(explode(',', $CFG->showuseridentity));
} else {
$identityfields = array();
}
Expand Down

0 comments on commit c6b44cb

Please sign in to comment.