Skip to content

Commit

Permalink
Further fix not to pass NULL to stringy method
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 20, 2022
1 parent fa41317 commit 613c39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Core/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function apply(): Locale {
public function renegotiate(array $availableLocales): ?Locale {
$fallbacks = array_merge(
// We'd like to stay in the active locale (or something closely related)
static::getLocalePrecedence($this->nominal),
($this->nominal ? static::getLocalePrecedence($this->nominal) : []),
// If we can't, then try the system locale (or something closely related)
static::getLocalePrecedence(\Civi::settings()->get('lcMessages'))
);
Expand Down

0 comments on commit 613c39f

Please sign in to comment.