Index: typo3/mod/tools/em/class.em_index.php =================================================================== --- typo3/mod/tools/em/class.em_index.php (revision 1626) +++ typo3/mod/tools/em/class.em_index.php (working copy) @@ -1188,32 +1188,35 @@ $translationStatusArr = $this->terConnection->fetchTranslationStatus($extKey,$mirrorURL); echo (''.$extKey.''); - foreach($selectedLanguages as $lang) { - // remote unknown -> no l10n available - if(!isset($translationStatusArr[$lang])) { - echo ('N/A'); - continue; - } - // determine local md5 from zip - if(is_file(PATH_site.'typo3temp/'.$extKey.'-l10n-'.$lang.'.zip')) { - $localmd5 = md5_file(PATH_site.'typo3temp/'.$extKey.'-l10n-'.$lang.'.zip'); - } else { - $localmd5 = 'zzz'; - } - // local!=remote or not installed -> needs update - if($localmd5 != $translationStatusArr[$lang]['md5']) { - $ret = $this->updateTranslation($extKey, $lang, $mirrorURL); - if($ret === true) { - echo ('UPD'); + if(is_array($translationStatusArr)) { + foreach($selectedLanguages as $lang) { + // remote unknown -> no l10n available + if(!isset($translationStatusArr[$lang])) { + echo ('N/A'); + continue; + } + // determine local md5 from zip + if(is_file(PATH_site.'typo3temp/'.$extKey.'-l10n-'.$lang.'.zip')) { + $localmd5 = md5_file(PATH_site.'typo3temp/'.$extKey.'-l10n-'.$lang.'.zip'); } else { - echo ('ERR'); + $localmd5 = 'zzz'; } - continue; + // local!=remote or not installed -> needs update + if($localmd5 != $translationStatusArr[$lang]['md5']) { + $ret = $this->updateTranslation($extKey, $lang, $mirrorURL); + if($ret === true) { + echo ('UPD'); + } else { + echo ('ERR'); + } + continue; + } + echo ('OK'); } - echo ('OK'); + } else { + echo ('Could not fetch translation status'); } echo (''); - $counter++; } echo '