fallback if dictionary does not exist
This commit is contained in:
parent
6f6640ae15
commit
07d5869a1a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue