Skip to content

Commit

Permalink
MDL-22015 fixed regression in last commit, sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 14, 2010
1 parent 38bb62b commit 96de38c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion user/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function definition_after_data() {
if ($langsel = $mform->getElementValue('lang')) {
$lang = reset($langsel);
// check lang exists
if (get_string_manager()->translation_exists($lang, false)) {
if (!get_string_manager()->translation_exists($lang, false)) {
$lang_el =& $mform->getElement('lang');
$lang_el->setValue($CFG->lang);
}
Expand Down
2 changes: 1 addition & 1 deletion user/editadvanced_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function definition_after_data() {
if ($langsel = $mform->getElementValue('lang')) {
$lang = reset($langsel);
// check lang exists
if (get_string_manager()->translation_exists($lang, false)) {
if (!get_string_manager()->translation_exists($lang, false)) {
$lang_el =& $mform->getElement('lang');
$lang_el->setValue($CFG->lang);
}
Expand Down

0 comments on commit 96de38c

Please sign in to comment.