fallback if dictionary does not exist

This commit is contained in:
m1k1o 2020-10-08 23:19:13 +02:00
parent 6f6640ae15
commit 07d5869a1a

View file

@ -15,7 +15,7 @@ class Lang
}
public static function get($key){
if(!@array_key_exists($key, self::$_dictionary)){
if(!is_array(self::$_dictionary) || !array_key_exists($key, self::$_dictionary)){
return $key;
}