Skip to content

Commit

Permalink
check for null in language
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o authored Nov 6, 2020
1 parent 07d5869 commit b54509b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lang.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function load($lang = 'en'){
}

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;
}

Expand Down

0 comments on commit b54509b

Please sign in to comment.