Skip to content

Commit 74d15cc

Browse files
committed
Improve loadL10N guard.
1 parent b3955a3 commit 74d15cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,14 +573,14 @@ public function loadL10N(string $Path = ''): void
573573
$Primary = $this->readFile($Path . $this->Configuration['core']['lang'] . '.yml');
574574
$Fallback = $this->readFile($Path . 'en.yml');
575575
}
576-
if ($Primary) {
576+
if (strlen($Primary)) {
577577
$Arr = [];
578578
$this->YAML->process($Primary, $Arr);
579579
$Primary = $Arr;
580580
} else {
581581
$Primary = [];
582582
}
583-
if ($Fallback) {
583+
if (strlen($Fallback)) {
584584
$Arr = [];
585585
$this->YAML->process($Fallback, $Arr);
586586
$Fallback = $Arr;

0 commit comments

Comments
 (0)