From b54509ba5142d0f65079fda7c909262372c30584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 6 Nov 2020 09:58:32 +0100 Subject: [PATCH] check for null in language --- app/lang.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lang.class.php b/app/lang.class.php index 585c175..4894336 100644 --- a/app/lang.class.php +++ b/app/lang.class.php @@ -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; }