Skip to content

Commit

Permalink
Merge pull request #11333 from samuelsov/CRM-21470b
Browse files Browse the repository at this point in the history
CRM-21470 Ensure we don't have an empty locale
  • Loading branch information
eileenmcnaughton authored Nov 28, 2017
2 parents 923c18f + 5a44748 commit 7a28c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/System/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function getUFLocale() {

// TODO: set language variable for others WordPress plugin

if (isset($language)) {
if (!empty($language)) {
return CRM_Core_I18n_PseudoConstant::longForShort(substr($language, 0, 2));
}
else {
Expand Down

0 comments on commit 7a28c39

Please sign in to comment.