check for null in language

This commit is contained in:
Miroslav Šedivý 2020-11-06 09:58:32 +01:00 committed by GitHub
parent 07d5869a1a
commit b54509ba51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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