Skip to content

Commit

Permalink
+ added local & file check
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Potas <christoph286@googlemail.com>
  • Loading branch information
puschie286 committed Nov 13, 2018
1 parent fc1c900 commit 4e8c2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Language/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ protected function parseLine(string $line): array
$file = substr($line, 0, strpos($line, '.'));
$line = substr($line, strlen($file) + 1);

if (! array_key_exists( $line, $this->language[$this->locale][$file] ) )
if (! isset($this->language[$this->locale][$file]) || ! array_key_exists($line, $this->language[$this->locale][$file]))
{
$this->load($file, $this->locale);
}
Expand Down

0 comments on commit 4e8c2d9

Please sign in to comment.