mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 08:39:25 +08:00
fix: null as 2nd param is deprecated (#3801)
This commit is contained in:
parent
1792e22639
commit
8576df1a43
@ -62,7 +62,7 @@ class Translator extends BaseTranslator implements TranslatorContract
|
||||
{
|
||||
foreach ($catalogue->all() as $domain => $messages) {
|
||||
foreach ($messages as $id => $translation) {
|
||||
if (preg_match(self::REFERENCE_REGEX, $translation, $matches)) {
|
||||
if (! empty($translation) && preg_match(self::REFERENCE_REGEX, $translation, $matches)) {
|
||||
$catalogue->set($id, $this->getTranslation($catalogue, $id, $domain), $domain);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user