[-] BO : Bug fix on module extract zip - #PSCFI-5335

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15262 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2012-05-14 09:40:26 +00:00
parent 9785afd5a2
commit 6c79f4803b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1806,7 +1806,7 @@ FileETag INode MTime Size
$zip = new PclZip($fromFile);
$list = $zip->extract(PCLZIP_OPT_PATH, $toDir);
foreach ($list as $extractedFile)
if ($extractedFile['status'] != 'ok')
if ($extractedFile['status'] != 'ok' && $extractedFile['status'] != 'already_a_directory')
return false;
return true;
}