diff --git a/classes/Language.php b/classes/Language.php index 92442471e07e0..d64c40afef723 100644 --- a/classes/Language.php +++ b/classes/Language.php @@ -944,7 +944,8 @@ public static function updateModulesTranslations(Array $modules_list) if (isset($file['filename']) && is_string($file['filename'])) $files_listing[] = $file['filename']; } - $gz->extractList($files_listing, _PS_TRANSLATIONS_DIR_.'../', ''); + if ($gz) // $gz is initialized inside th eforeach... it may not be initialized if no loop is done (case of not conencted to the internet) + $gz->extractList($files_listing, _PS_TRANSLATIONS_DIR_.'../', ''); } } -} \ No newline at end of file +}